mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-05 21:21:42 +00:00
Merge pull request #16782 from duglin/ErrInfoDaemon
Fix daemon logs so that "API listen on" is INFO not ERROR
This commit is contained in:
@@ -79,7 +79,7 @@ func (s *Server) ServeAPI() error {
|
||||
srv.srv.Handler = s.CreateMux()
|
||||
go func(srv *HTTPServer) {
|
||||
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") {
|
||||
err = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user