From f2f170868788f8b494516267e5d101f8c9720957 Mon Sep 17 00:00:00 2001 From: jhadvig Date: Wed, 12 Nov 2014 11:42:55 +0100 Subject: [PATCH] Setting RawTerminal attribute in LogOptions to false --- pkg/kubelet/dockertools/docker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/kubelet/dockertools/docker.go b/pkg/kubelet/dockertools/docker.go index d6d2896032f..544f6648f1a 100644 --- a/pkg/kubelet/dockertools/docker.go +++ b/pkg/kubelet/dockertools/docker.go @@ -334,6 +334,7 @@ func GetRecentDockerContainersWithNameAndUUID(client DockerInterface, podFullNam // By default the function will return snapshot of the container log // Log streaming is possible if 'follow' param is set to true // Log tailing is possible when number of tailed lines are set and only if 'follow' is false +// TODO: Make 'RawTerminal' option flagable. func GetKubeletDockerContainerLogs(client DockerInterface, containerID, tail string, follow bool, stdout, stderr io.Writer) (err error) { opts := docker.LogsOptions{ Container: containerID, @@ -342,7 +343,7 @@ func GetKubeletDockerContainerLogs(client DockerInterface, containerID, tail str OutputStream: stdout, ErrorStream: stderr, Timestamps: true, - RawTerminal: true, + RawTerminal: false, Follow: follow, }