mirror of
https://github.com/caprover/caprover
synced 2026-09-23 23:25:38 +00:00
Fixed logs for app
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user