From 8abc9cc0318a3ec3d53d887bcb9784efc1884ee9 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 11 Dec 2021 22:09:18 +0100 Subject: [PATCH] outposts: cleanup logs for failed binds Signed-off-by: Jens Langhammer --- internal/outpost/ldap/ldap.go | 2 +- internal/outpost/ldap/ldap_tls.go | 2 +- internal/outpost/proxyv2/proxyv2.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/outpost/ldap/ldap.go b/internal/outpost/ldap/ldap.go index b37dc1893..1ebe86d32 100644 --- a/internal/outpost/ldap/ldap.go +++ b/internal/outpost/ldap/ldap.go @@ -52,7 +52,7 @@ func (ls *LDAPServer) StartLDAPServer() error { ln, err := net.Listen("tcp", listen) if err != nil { - ls.log.WithField("listen", listen).WithError(err).Fatalf("FATAL: listen failed") + ls.log.WithField("listen", listen).WithError(err).Fatalf("listen failed") } proxyListener := &proxyproto.Listener{Listener: ln} defer proxyListener.Close() diff --git a/internal/outpost/ldap/ldap_tls.go b/internal/outpost/ldap/ldap_tls.go index f42d76a67..6a747451b 100644 --- a/internal/outpost/ldap/ldap_tls.go +++ b/internal/outpost/ldap/ldap_tls.go @@ -37,7 +37,7 @@ func (ls *LDAPServer) StartLDAPTLSServer() error { ln, err := net.Listen("tcp", listen) if err != nil { - ls.log.WithField("listen", listen).WithError(err).Fatalf("FATAL: listen failed") + ls.log.WithField("listen", listen).WithError(err).Fatalf("listen failed") } proxyListener := &proxyproto.Listener{Listener: ln} diff --git a/internal/outpost/proxyv2/proxyv2.go b/internal/outpost/proxyv2/proxyv2.go index 9ad69bdb2..f6cd68ff1 100644 --- a/internal/outpost/proxyv2/proxyv2.go +++ b/internal/outpost/proxyv2/proxyv2.go @@ -103,7 +103,7 @@ func (ps *ProxyServer) ServeHTTP() { listenAddress := fmt.Sprintf(ps.Listen, 9000+ps.PortOffset) listener, err := net.Listen("tcp", listenAddress) if err != nil { - ps.log.Fatalf("FATAL: listen (%s) failed - %s", listenAddress, err) + ps.log.WithField("listen", listenAddress).WithError(err).Fatalf("listen failed") } proxyListener := &proxyproto.Listener{Listener: listener} defer proxyListener.Close()