1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 07:49:41 +02:00

feat(app/logs): format Zerolog in logs viewer [EE-4226] (#7685)

* feat(app/logs): format Zerolog in logs viewer

* fix(app/logs): trim caller to only last 2 segments
This commit is contained in:
LP B 2022-09-22 00:34:58 +02:00 committed by GitHub
parent 6063f368ea
commit 1b0db4971f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 120 additions and 9 deletions

View file

@ -159,7 +159,7 @@ function ContainerServiceFactory($q, Container, LogHelper, $timeout, EndpointPro
Container.logs(parameters)
.$promise.then(function success(data) {
var logs = LogHelper.formatLogs(data.logs, stripHeaders);
var logs = LogHelper.formatLogs(data.logs, { stripHeaders, withTimestamps: !!timestamps });
deferred.resolve(logs);
})
.catch(function error(err) {