From 53041efaf1c59598b5b1307bf8fe8d1de24119d2 Mon Sep 17 00:00:00 2001 From: jonny64 Date: Mon, 16 Feb 2015 17:42:02 +0000 Subject: [PATCH] logs: tail also STDERR --- app/components/containerLogs/containerLogsController.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/components/containerLogs/containerLogsController.js b/app/components/containerLogs/containerLogsController.js index 883eedf55..cfbcdae6a 100644 --- a/app/components/containerLogs/containerLogsController.js +++ b/app/components/containerLogs/containerLogsController.js @@ -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'); }); }