TUN-7129: Categorize TCP logs for streaming logs

This commit is contained in:
Devin Carr 2023-04-17 14:17:49 -07:00
parent 171d4ac77c
commit 7a014b06ec
1 changed files with 2 additions and 0 deletions

View File

@ -173,6 +173,7 @@ func (p *Proxy) ProxyTCP(
tracedCtx := tracing.NewTracedContext(serveCtx, req.CfTraceID, p.log)
p.log.Debug().
Int(management.EventTypeKey, int(management.TCP)).
Str(LogFieldFlowID, req.FlowID).
Str(LogFieldDestAddr, req.Dest).
Uint8(LogFieldConnIndex, req.ConnIndex).
@ -184,6 +185,7 @@ func (p *Proxy) ProxyTCP(
}
p.log.Debug().
Int(management.EventTypeKey, int(management.TCP)).
Str(LogFieldFlowID, req.FlowID).
Str(LogFieldDestAddr, req.Dest).
Uint8(LogFieldConnIndex, req.ConnIndex).