From 9721db9504e7c7cc00d25549ee7ea43fcf6707be Mon Sep 17 00:00:00 2001 From: Geoffrey Hausheer Date: Wed, 20 Sep 2023 09:48:10 -0700 Subject: [PATCH] Add info message regarding socket-activation Signed-off-by: Geoffrey Hausheer --- registry/listener/listener.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/registry/listener/listener.go b/registry/listener/listener.go index 2548f75ec..2be6125fb 100644 --- a/registry/listener/listener.go +++ b/registry/listener/listener.go @@ -7,6 +7,7 @@ import ( "time" "github.com/coreos/go-systemd/v22/activation" + log "github.com/sirupsen/logrus" ) // tcpKeepAliveListener sets TCP keep-alive timeouts on accepted @@ -47,6 +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") return listeners[0], nil default: return nil, fmt.Errorf("Found %d socket-activation listeners, only expected 1", len(listeners))