Add user prefix to upstream logger

This commit is contained in:
Simon Ser 2021-04-13 20:16:37 +02:00
parent fb4a01b023
commit 0d6d297027

View File

@ -105,7 +105,7 @@ type upstreamConn struct {
}
func connectToUpstream(network *network) (*upstreamConn, error) {
logger := &prefixLogger{network.user.srv.Logger, fmt.Sprintf("upstream %q: ", network.Addr)}
logger := &prefixLogger{network.user.logger, fmt.Sprintf("upstream %q: ", network.GetName())}
dialer := net.Dialer{Timeout: connectTimeout}