libnet: Improve the debug log written when the extKeyListener is stopped

This log message was quite spreading FUD whereas it's absolutely benign.
Reword it.

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
Albin Kerouanton 2023-12-21 12:16:17 +01:00
parent 7bc56c5365
commit f9135cdeb5
No known key found for this signature in database
GPG key ID: 630B8E1DCBDB1864

View file

@ -131,7 +131,8 @@ func (c *Controller) acceptClientConnections(sock string, l net.Listener) {
conn, err := l.Accept()
if err != nil {
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
}
log.G(context.TODO()).Errorf("Error accepting connection %v", err)