Improve socket-activation message

Co-authored-by: James Hewitt <james.hewitt@gmail.com>
Signed-off-by: Geoffrey Hausheer <rc2012@pblue.org>
This commit is contained in:
Geoffrey Hausheer 2023-09-20 10:29:48 -07:00 committed by PhracturedBlue
parent 9721db9504
commit a9399e9ea2

View file

@ -48,7 +48,7 @@ func NewListener(net, laddr string) (net.Listener, error) {
return nil, fmt.Errorf("unknown address type %s", net)
}
case 1:
log.Info("Socet-activation is being used. Overriding requested address")
log.Info("Using systemd socket activation instead of any configured network listeners")
return listeners[0], nil
default:
return nil, fmt.Errorf("Found %d socket-activation listeners, only expected 1", len(listeners))