logs: tail also STDERR

pull/2/head
jonny64 2015-02-16 17:42:02 +00:00
parent 87131f4ae3
commit 53041efaf1
1 changed files with 6 additions and 1 deletions

View File

@ -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');
});
}