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

@@ -112,7 +112,7 @@ func Dial(
tlsConf: tlsConf,
config: clientConfig,
version: version,
logger: utils.DefaultLogger,
logger: utils.DefaultLogger.WithPrefix("client"),
}
c.logger.Infof("Starting new connection to %s (%s -> %s), source connection ID %s, destination connection ID %s, version %s", hostname, c.conn.LocalAddr(), c.conn.RemoteAddr(), c.srcConnID, c.destConnID, c.version)