fix(log-viewer): unable to view container logs EE-6273 (#10555)

pull/10573/head
cmeng 1 year ago committed by GitHub
parent 8bb5129be0
commit 8daf77c3b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -158,9 +158,10 @@ function ContainerServiceFactory($q, Container, $timeout) {
timestamps: timestamps || 0, timestamps: timestamps || 0,
since: since || 0, since: since || 0,
tail: tail || 'all', tail: tail || 'all',
environmentId,
}; };
Container.logs(environmentId, parameters) Container.logs(parameters)
.$promise.then(function success(data) { .$promise.then(function success(data) {
var logs = formatLogs(data.logs, { stripHeaders, withTimestamps: !!timestamps }); var logs = formatLogs(data.logs, { stripHeaders, withTimestamps: !!timestamps });
deferred.resolve(logs); deferred.resolve(logs);

Loading…
Cancel
Save