addr -> listenAddress for listener logs

pull/1074/head
Eugene Kim 6 years ago
parent 11dc650b69
commit 3858c7577f
  1. 6
      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) { 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) { 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) { func (cl ConnLogger) Connected(n net.Network, c net.Conn) {

Loading…
Cancel
Save