MCPcopy
hub / github.com/grafana/dskit / debugLog

Method debugLog

kv/memberlist/tcp_transport.go:268–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

266var noopLogger = log.NewNopLogger()
267
268func (t *TCPTransport) debugLog() log.Logger {
269 if t.cfg.TransportDebug {
270 return level.Debug(t.logger)
271 }
272 return noopLogger
273}
274
275func (t *TCPTransport) handleConnection(conn net.Conn) {
276 t.debugLog().Log("msg", "New connection", "addr", conn.RemoteAddr())

Callers 3

handleConnectionMethod · 0.95
writeWorkerMethod · 0.95
writeToMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected