~emersion/soju

0d6d2970271314d46ef111a25df2b889ea41f1ac — Simon Ser 6 months ago fb4a01b
Add user prefix to upstream logger
1 files changed, 1 insertions(+), 1 deletions(-)

M upstream.go
M upstream.go => upstream.go +1 -1
@@ 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}