improve listener labels (#5635)

add a label after every "listener opened on :XXX" message that mentions
protocols of every listener.
This commit is contained in:
Alessandro Ros
2026-04-03 16:35:31 +02:00
committed by GitHub
parent 4ed821add0
commit f453b59cd6
8 changed files with 52 additions and 11 deletions
+7 -1
View File
@@ -179,7 +179,13 @@ func (a *API) Initialize() error {
return err
}
a.Log(logger.Info, "listener opened on "+a.Address)
str := "listener opened on " + a.Address
if !a.Encryption {
str += " (TCP/HTTP)"
} else {
str += " (TCP/HTTPS)"
}
a.Log(logger.Info, str)
return nil
}