Add user prefix to upstream logger
This commit is contained in:
parent
fb4a01b023
commit
0d6d297027
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user