mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-18 08:09:58 +00:00
Setting RawTerminal attribute in LogOptions to false
This commit is contained in:
parent
76b6188f82
commit
f2f1708687
@ -334,6 +334,7 @@ func GetRecentDockerContainersWithNameAndUUID(client DockerInterface, podFullNam
|
|||||||
// By default the function will return snapshot of the container log
|
// By default the function will return snapshot of the container log
|
||||||
// Log streaming is possible if 'follow' param is set to true
|
// 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
|
// 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) {
|
func GetKubeletDockerContainerLogs(client DockerInterface, containerID, tail string, follow bool, stdout, stderr io.Writer) (err error) {
|
||||||
opts := docker.LogsOptions{
|
opts := docker.LogsOptions{
|
||||||
Container: containerID,
|
Container: containerID,
|
||||||
@ -342,7 +343,7 @@ func GetKubeletDockerContainerLogs(client DockerInterface, containerID, tail str
|
|||||||
OutputStream: stdout,
|
OutputStream: stdout,
|
||||||
ErrorStream: stderr,
|
ErrorStream: stderr,
|
||||||
Timestamps: true,
|
Timestamps: true,
|
||||||
RawTerminal: true,
|
RawTerminal: false,
|
||||||
Follow: follow,
|
Follow: follow,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user