1
0
Fork 0

Merge pull request #823 from rqlite/log-mux-conn

Log source address of muxed request
master
Philip O'Toole 3 years ago committed by GitHub
commit 7292d79438
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
}

Loading…
Cancel
Save