internal/server: fixup logging of tcp/kcp servers listening
This commit is contained in:
parent
443d8ebb2c
commit
adf2121326
|
@ -55,11 +55,6 @@ func (s *Server) listenTCP(ctx context.Context, addr string, tcfg *tls.Config) {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
ln.Log(ctx, ln.F{
|
||||
"action": "tcp+tls listening",
|
||||
"addr": l.Addr(),
|
||||
})
|
||||
|
||||
ln.Log(ctx, ln.Action("tcp+tls listening"), ln.F{"addr": l.Addr()})
|
||||
|
||||
for {
|
||||
|
@ -84,10 +79,7 @@ func (s *Server) listenKCP(ctx context.Context, addr string, tcfg *tls.Config) {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
ln.Log(ctx, ln.F{
|
||||
"action": "kcp+tls listening",
|
||||
"addr": l.Addr(),
|
||||
})
|
||||
ln.Log(ctx, ln.Action("kcp+tls listening"), ln.F{"addr": l.Addr()})
|
||||
|
||||
for {
|
||||
conn, err := l.Accept()
|
||||
|
|
Loading…
Reference in New Issue