From c7ebe9d88108cb2d08b4f7d6649e2ced1b3928b7 Mon Sep 17 00:00:00 2001 From: Kevan Ahlquist Date: Mon, 9 Feb 2015 23:00:34 -0600 Subject: [PATCH] Added timestamp option to stderr. --- app/components/containerLogs/containerLogsController.js | 2 +- dist/dockerui.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/containerLogs/containerLogsController.js b/app/components/containerLogs/containerLogsController.js index ddd614d79..70eff4dfc 100644 --- a/app/components/containerLogs/containerLogsController.js +++ b/app/components/containerLogs/containerLogsController.js @@ -23,7 +23,7 @@ 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}, 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'); }); } diff --git a/dist/dockerui.js b/dist/dockerui.js index 55d37182d..8452cb065 100644 --- a/dist/dockerui.js +++ b/dist/dockerui.js @@ -159,7 +159,7 @@ 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}, 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'); }); }