From 45f98a0b3928b5eee1528546602b295b54c63418 Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Tue, 19 Sep 2017 18:53:22 +0000 Subject: [PATCH] Fix one line of log, we are writing not reading. Signed-off-by: Lantao Liu --- pkg/server/io/logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/io/logger.go b/pkg/server/io/logger.go index 871507051..c4628a8f4 100644 --- a/pkg/server/io/logger.go +++ b/pkg/server/io/logger.go @@ -52,7 +52,7 @@ func NewDiscardLogger() io.WriteCloser { // NewCRILogger returns a write closer which redirect container log into // log file, and decorate the log line into CRI defined format. func NewCRILogger(path string, stream StreamType) (io.WriteCloser, error) { - glog.V(4).Infof("Start reading log file %q", path) + glog.V(4).Infof("Start writing log file %q", path) prc, pwc := io.Pipe() f, err := os.OpenFile(path, os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0640) if err != nil {