internal/server: fixup logging of tcp/kcp servers listening

This commit is contained in:
Cadey Ratio 2017-10-04 00:19:56 -07:00
parent 443d8ebb2c
commit adf2121326
No known key found for this signature in database
GPG Key ID: D607EE27C2E7F89A
1 changed files with 1 additions and 9 deletions

View File

@ -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()