Browse code

Small log formatting fixes

… and clise to close 👼

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Vincent Demeester authored on 2016/10/28 07:29:24
Showing 2 changed files
... ...
@@ -49,7 +49,7 @@ func (c *Config) InitializeStdio(iop libcontainerd.IOPipe) error {
49 49
 	if c.Stdin() == nil && !c.Tty && runtime.GOOS == "windows" {
50 50
 		if iop.Stdin != nil {
51 51
 			if err := iop.Stdin.Close(); err != nil {
52
-				logrus.Error("error closing exec stdin: %+v", err)
52
+				logrus.Errorf("error closing exec stdin: %+v", err)
53 53
 			}
54 54
 		}
55 55
 	}
... ...
@@ -135,7 +135,7 @@ func (streamConfig *StreamConfig) CopyToPipe(iop libcontainerd.IOPipe) {
135 135
 			go func() {
136 136
 				pools.Copy(iop.Stdin, stdin)
137 137
 				if err := iop.Stdin.Close(); err != nil {
138
-					logrus.Error("failed to clise stdin: %+v", err)
138
+					logrus.Errorf("failed to close stdin: %+v", err)
139 139
 				}
140 140
 			}()
141 141
 		}