From 4c17064d6b4faff422cbedb2b7cc7474a6214d39 Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Tue, 29 Jun 2021 15:58:51 -0400 Subject: [PATCH] Log source address of muxed request --- tcp/mux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tcp/mux.go b/tcp/mux.go index 1480a847..85aaa988 100644 --- a/tcp/mux.go +++ b/tcp/mux.go @@ -239,7 +239,8 @@ func (mux *Mux) handleConn(conn net.Conn) { if handler == nil { conn.Close() stats.Add(numUnregisteredHandlers, 1) - mux.Logger.Printf("tcp.Mux: handler not registered: %d (unsupported protocol?)", typ[0]) + mux.Logger.Printf("tcp.Mux: handler not registered for request from %s: %d (unsupported protocol?)", + conn.RemoteAddr().String(), typ[0]) return }