use the prefix logger for client, server and proxy

This commit is contained in:
Marten Seemann
2018-03-31 14:25:05 +07:00
parent d06957b8d8
commit 6b82e46e0c
5 changed files with 5 additions and 5 deletions

View File

@@ -110,7 +110,7 @@ func Listen(conn net.PacketConn, tlsConf *tls.Config, config *Config) (Listener,
sessionQueue: make(chan Session, 5),
errorChan: make(chan struct{}),
supportsTLS: supportsTLS,
logger: utils.DefaultLogger,
logger: utils.DefaultLogger.WithPrefix("server"),
}
if supportsTLS {
if err := s.setupTLS(); err != nil {