@@ -7,11 +7,11 @@ import (
77 "runtime"
88 "sync"
99
10+ "github.com/containerd/log"
1011 "github.com/docker/cli/cli/command"
1112 "github.com/moby/moby/api/pkg/stdcopy"
1213 "github.com/moby/moby/client"
1314 "github.com/moby/term"
14- "github.com/sirupsen/logrus"
1515)
1616
1717// The default escape key sequence: ctrl-p, ctrl-q
@@ -152,10 +152,10 @@ func (h *hijackedIOStreamer) beginOutputStream(restoreInput func()) <-chan error
152152 _ , err = stdcopy .StdCopy (h .outputStream , h .errorStream , h .resp .Reader )
153153 }
154154
155- logrus .Debug ("[hijack] End of stdout" )
155+ log . G ( context . TODO ()) .Debug ("[hijack] End of stdout" )
156156
157157 if err != nil {
158- logrus .Debugf ("Error receiveStdout: %s" , err )
158+ log . G ( context . TODO ()) .Debugf ("Error receiveStdout: %s" , err )
159159 }
160160
161161 outputDone <- err
@@ -176,7 +176,7 @@ func (h *hijackedIOStreamer) beginInputStream(restoreInput func()) (doneC <-chan
176176 // messages will be in normal type.
177177 restoreInput ()
178178
179- logrus .Debug ("[hijack] End of stdin" )
179+ log . G ( context . TODO ()) .Debug ("[hijack] End of stdin" )
180180
181181 if _ , ok := err .(term.EscapeError ); ok {
182182 detached <- err
@@ -187,12 +187,12 @@ func (h *hijackedIOStreamer) beginInputStream(restoreInput func()) (doneC <-chan
187187 // This error will also occur on the receive
188188 // side (from stdout) where it will be
189189 // propagated back to the caller.
190- logrus .Debugf ("Error sendStdin: %s" , err )
190+ log . G ( context . TODO ()) .Debugf ("Error sendStdin: %s" , err )
191191 }
192192 }
193193
194194 if err := h .resp .CloseWrite (); err != nil {
195- logrus .Debugf ("Couldn't send EOF: %s" , err )
195+ log . G ( context . TODO ()) .Debugf ("Couldn't send EOF: %s" , err )
196196 }
197197
198198 close (inputDone )
0 commit comments