mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-05-12 16:46:34 +00:00
TUN-7129: Categorize TCP logs for streaming logs
This commit is contained in:
parent
171d4ac77c
commit
7a014b06ec
@ -173,6 +173,7 @@ func (p *Proxy) ProxyTCP(
|
|||||||
tracedCtx := tracing.NewTracedContext(serveCtx, req.CfTraceID, p.log)
|
tracedCtx := tracing.NewTracedContext(serveCtx, req.CfTraceID, p.log)
|
||||||
|
|
||||||
p.log.Debug().
|
p.log.Debug().
|
||||||
|
Int(management.EventTypeKey, int(management.TCP)).
|
||||||
Str(LogFieldFlowID, req.FlowID).
|
Str(LogFieldFlowID, req.FlowID).
|
||||||
Str(LogFieldDestAddr, req.Dest).
|
Str(LogFieldDestAddr, req.Dest).
|
||||||
Uint8(LogFieldConnIndex, req.ConnIndex).
|
Uint8(LogFieldConnIndex, req.ConnIndex).
|
||||||
@ -184,6 +185,7 @@ func (p *Proxy) ProxyTCP(
|
|||||||
}
|
}
|
||||||
|
|
||||||
p.log.Debug().
|
p.log.Debug().
|
||||||
|
Int(management.EventTypeKey, int(management.TCP)).
|
||||||
Str(LogFieldFlowID, req.FlowID).
|
Str(LogFieldFlowID, req.FlowID).
|
||||||
Str(LogFieldDestAddr, req.Dest).
|
Str(LogFieldDestAddr, req.Dest).
|
||||||
Uint8(LogFieldConnIndex, req.ConnIndex).
|
Uint8(LogFieldConnIndex, req.ConnIndex).
|
||||||
|
Loading…
Reference in New Issue
Block a user