4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-03 15:27:47 +00:00

Tweak logging

This commit is contained in:
Neil Alexander
2023-11-26 16:28:48 +00:00
parent f6f669617f
commit fef553ed18
4 changed files with 7 additions and 7 deletions

View File

@ -432,8 +432,8 @@ func (l *links) listen(u *url.URL, sintf string) (*Listener, error) {
}
go func() {
l.core.log.Printf("%s listener started on %s", strings.ToUpper(u.Scheme), listener.Addr())
defer l.core.log.Printf("%s listener stopped on %s", strings.ToUpper(u.Scheme), listener.Addr())
l.core.log.Infof("%s listener started on %s", strings.ToUpper(u.Scheme), listener.Addr())
defer l.core.log.Infof("%s listener stopped on %s", strings.ToUpper(u.Scheme), listener.Addr())
for {
conn, err := listener.Accept()
if err != nil {