Fix logrus formatting

This fix tries to fix logrus formatting by removing `f` from
`logrus.[Error|Warn|Debug|Fatal|Panic|Info]f` when formatting string
is not present.

This fix fixes #23459.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: a72b45dbec3caeb3237d1af5aedd04adeb083571
Component: engine
This commit is contained in:
Yong Tang
2016-06-11 13:16:55 -07:00
parent b3cd08e4c9
commit 04ae4edf2f
19 changed files with 42 additions and 42 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ func (cli *DockerCli) HoldHijackedConnection(ctx context.Context, tty bool, inpu
_, err = stdcopy.StdCopy(outputStream, errorStream, resp.Reader)
}
logrus.Debugf("[hijack] End of stdout")
logrus.Debug("[hijack] End of stdout")
receiveStdout <- err
}()
}
@@ -62,7 +62,7 @@ func (cli *DockerCli) HoldHijackedConnection(ctx context.Context, tty bool, inpu
cli.restoreTerminal(inputStream)
})
}
logrus.Debugf("[hijack] End of stdin")
logrus.Debug("[hijack] End of stdin")
}
if err := resp.CloseWrite(); err != nil {
+1 -1
View File
@@ -163,7 +163,7 @@ func (s *Server) InitRouter(enableProfiler bool, routers ...router.Router) {
func (s *Server) createMux() *mux.Router {
m := mux.NewRouter()
logrus.Debugf("Registering routers")
logrus.Debug("Registering routers")
for _, apiRouter := range s.routers {
for _, r := range apiRouter.Routes() {
f := s.makeHTTPHandler(r.Handler())