Fixed logs for app

This commit is contained in:
Kasra Bigdeli
2019-01-26 23:38:51 -08:00
parent c35d86d5d0
commit 92813f051e
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -1480,11 +1480,15 @@ class DockerApi {
return (self.dockerode.getService(serviceName) as any) //
.logs({
tail: tailCount,
follow: false,
timestamps: true,
stdout: true,
stderr: true,
})
})
.then(function(data) {
return data && data.toString ? data.toString('utf8') : data
})
}
getDockerVersion() {
+1 -1
View File
@@ -26,7 +26,7 @@ router.get('/:appName/logs', function(req, res, next) {
.then(function(logs) {
let baseApi = new BaseApi(
ApiStatusCodes.STATUS_OK,
'App build status retrieved'
'App runtime logs are retrieved'
)
baseApi.data = {logs}
res.send(baseApi)