mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 07:19:41 +02:00
logs: tail also STDERR
This commit is contained in:
parent
87131f4ae3
commit
53041efaf1
1 changed files with 6 additions and 1 deletions
|
@ -30,7 +30,12 @@ function($scope, $routeParams, $location, $anchorScroll, ContainerLogs, Containe
|
|||
// Replace carriage returns twith newlines to clean up output
|
||||
$scope.stdout = data.replace(/[\r]/g, '\n');
|
||||
});
|
||||
ContainerLogs.get($routeParams.id, {stdout: 0, stderr: 1, timestamps: $scope.showTimestamps}, function(data, status, headers, config) {
|
||||
ContainerLogs.get($routeParams.id, {
|
||||
stdout: 0,
|
||||
stderr: 1,
|
||||
timestamps: $scope.showTimestamps,
|
||||
tail: $scope.tailLines
|
||||
}, function(data, status, headers, config) {
|
||||
$scope.stderr = data.replace(/[\r]/g, '\n');
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue