log origin of server listener (i.e. listenfd or not)
Alan Pearce alan@alanpearce.eu
Wed, 19 Jun 2024 14:11:23 +0200
1 files changed, 1 insertions(+), 0 deletions(-)
jump to
M internal/server/server.go → internal/server/server.go
@@ -169,6 +169,7 @@ if err != nil { log.Warn("could not create listener from listenfd", "error", err) } + log.Debug("listener from listenfd?", "passed", l != nil) if l == nil { l, err = net.Listen("tcp", s.Addr) if err != nil {