소스 검색

Merge pull request #27839 from vdemeester/lets-clise-this

Small log formatting fixes
Vincent Demeester 8 년 전
부모
커밋
5945ba64b2
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      daemon/exec/exec.go
  2. 1 1
      runconfig/streams.go

+ 1 - 1
daemon/exec/exec.go

@@ -49,7 +49,7 @@ func (c *Config) InitializeStdio(iop libcontainerd.IOPipe) error {
 	if c.Stdin() == nil && !c.Tty && runtime.GOOS == "windows" {
 		if iop.Stdin != nil {
 			if err := iop.Stdin.Close(); err != nil {
-				logrus.Error("error closing exec stdin: %+v", err)
+				logrus.Errorf("error closing exec stdin: %+v", err)
 			}
 		}
 	}

+ 1 - 1
runconfig/streams.go

@@ -135,7 +135,7 @@ func (streamConfig *StreamConfig) CopyToPipe(iop libcontainerd.IOPipe) {
 			go func() {
 				pools.Copy(iop.Stdin, stdin)
 				if err := iop.Stdin.Close(); err != nil {
-					logrus.Error("failed to clise stdin: %+v", err)
+					logrus.Errorf("failed to close stdin: %+v", err)
 				}
 			}()
 		}