From 3858c7577ff1fc21b26f4b9ccf91812dab29ac5a Mon Sep 17 00:00:00 2001 From: Eugene Kim Date: Sun, 16 Jun 2019 00:13:13 -0700 Subject: [PATCH] addr -> listenAddress for listener logs --- internal/utils/connlogger.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/utils/connlogger.go b/internal/utils/connlogger.go index c6aa7ee91..7baf02baf 100644 --- a/internal/utils/connlogger.go +++ b/internal/utils/connlogger.go @@ -33,11 +33,13 @@ func streamLogger(s net.Stream, l log.Logger) log.Logger { } func (cl ConnLogger) Listen(n net.Network, ma ma.Multiaddr) { - WithCaller(netLogger(n, cl.l)).Debug("listener starting", "addr", ma) + WithCaller(netLogger(n, cl.l)). + Debug("listener starting", "listenAddress", ma) } func (cl ConnLogger) ListenClose(n net.Network, ma ma.Multiaddr) { - WithCaller(netLogger(n, cl.l)).Debug("listener closing", "addr", ma) + WithCaller(netLogger(n, cl.l)). + Debug("listener closing", "listenAddress", ma) } func (cl ConnLogger) Connected(n net.Network, c net.Conn) {