Explorar o código

Merge pull request #46974 from akerouanton/fud-debug-log

libnet: Improve the debug log written when the extKeyListener is stopped
Sebastiaan van Stijn hai 1 ano
pai
achega
7df554acb0
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      libnetwork/sandbox_externalkey_unix.go

+ 2 - 1
libnetwork/sandbox_externalkey_unix.go

@@ -131,7 +131,8 @@ func (c *Controller) acceptClientConnections(sock string, l net.Listener) {
 		conn, err := l.Accept()
 		conn, err := l.Accept()
 		if err != nil {
 		if err != nil {
 			if _, err1 := os.Stat(sock); os.IsNotExist(err1) {
 			if _, err1 := os.Stat(sock); os.IsNotExist(err1) {
-				log.G(context.TODO()).Debugf("Unix socket %s doesn't exist. cannot accept client connections", sock)
+				// This happens when the socket is closed by the daemon, eg. during shutdown.
+				log.G(context.TODO()).Debugf("Unix socket %s was closed. The external key listener will stop.", sock)
 				return
 				return
 			}
 			}
 			log.G(context.TODO()).Errorf("Error accepting connection %v", err)
 			log.G(context.TODO()).Errorf("Error accepting connection %v", err)