mirror of https://github.com/docker/docs.git
Fix daemon logs so that "API listen on" is INFO not ERROR
W/o this PR the logs would show: ``` ERRO[0000] API listen on [::]:2375 ERRO[0000] API listen on /var/run/docker.sock ``` which is misleading since these aren't "errors" they're just informational. Signed-off-by: Doug Davis <dug@us.ibm.com>
This commit is contained in:
parent
e1d3cb89f1
commit
cc833c5e2b
|
@ -79,7 +79,7 @@ func (s *Server) ServeAPI() error {
|
||||||
srv.srv.Handler = s.CreateMux()
|
srv.srv.Handler = s.CreateMux()
|
||||||
go func(srv *HTTPServer) {
|
go func(srv *HTTPServer) {
|
||||||
var err error
|
var err error
|
||||||
logrus.Errorf("API listen on %s", srv.l.Addr())
|
logrus.Infof("API listen on %s", srv.l.Addr())
|
||||||
if err = srv.Serve(); err != nil && strings.Contains(err.Error(), "use of closed network connection") {
|
if err = srv.Serve(); err != nil && strings.Contains(err.Error(), "use of closed network connection") {
|
||||||
err = nil
|
err = nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue