mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-07 22:42:09 +00:00
Close logs pipes and catch write errors
Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
This commit is contained in:
@@ -40,6 +40,8 @@ func WriteLog(src io.Reader, dst io.Writer, format string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
fmt.Fprintf(dst, "%s", line)
|
||||
if _, err := io.WriteString(dst, line); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user