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

Added timestamp option to stderr.

This commit is contained in:
Kevan Ahlquist 2015-02-09 23:00:34 -06:00
parent c798a95fb3
commit c7ebe9d881
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ function($scope, $routeParams, $location, $anchorScroll, ContainerLogs, Containe
// Replace carriage returns twith newlines to clean up output // Replace carriage returns twith newlines to clean up output
$scope.stdout = data.replace(/[\r]/g, '\n'); $scope.stdout = data.replace(/[\r]/g, '\n');
}); });
ContainerLogs.get($routeParams.id, {stdout: 0, stderr: 1}, function(data, status, headers, config) { ContainerLogs.get($routeParams.id, {stdout: 0, stderr: 1, timestamps: $scope.showTimestamps}, function(data, status, headers, config) {
$scope.stderr = data.replace(/[\r]/g, '\n'); $scope.stderr = data.replace(/[\r]/g, '\n');
}); });
} }

2
dist/dockerui.js vendored
View file

@ -159,7 +159,7 @@ function($scope, $routeParams, $location, $anchorScroll, ContainerLogs, Containe
// Replace carriage returns twith newlines to clean up output // Replace carriage returns twith newlines to clean up output
$scope.stdout = data.replace(/[\r]/g, '\n'); $scope.stdout = data.replace(/[\r]/g, '\n');
}); });
ContainerLogs.get($routeParams.id, {stdout: 0, stderr: 1}, function(data, status, headers, config) { ContainerLogs.get($routeParams.id, {stdout: 0, stderr: 1, timestamps: $scope.showTimestamps}, function(data, status, headers, config) {
$scope.stderr = data.replace(/[\r]/g, '\n'); $scope.stderr = data.replace(/[\r]/g, '\n');
}); });
} }