Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
| ... | ... |
@@ -25,7 +25,7 @@ func (jl *JSONLog) Format(format string) (string, error) {
|
| 25 | 25 |
return fmt.Sprintf("[%s] %s", jl.Created.Format(format), jl.Log), nil
|
| 26 | 26 |
} |
| 27 | 27 |
|
| 28 |
-func WriteLog(src io.Reader, dst io.WriteCloser, format string) error {
|
|
| 28 |
+func WriteLog(src io.Reader, dst io.Writer, format string) error {
|
|
| 29 | 29 |
dec := json.NewDecoder(src) |
| 30 | 30 |
for {
|
| 31 | 31 |
l := &JSONLog{}
|