Commit 2335bfa3 authored by Clayton Coleman's avatar Clayton Coleman

Allow Docker container logs to be tail'd and follow'd

Relaxes the very very ancient restriction we put in place to keep the original API surface area PR small. Better to be consistent with actual expected use of tail.
parent 4c3ac326
......@@ -290,7 +290,7 @@ func (dm *DockerManager) GetContainerLogs(pod *api.Pod, containerID kubecontaine
RawTerminal: false,
}
if !logOptions.Follow && logOptions.TailLines != nil {
if logOptions.TailLines != nil {
opts.Tail = strconv.FormatInt(*logOptions.TailLines, 10)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment