TUN-6941: Reduce log level to debug when failing to proxy ICMP reply
This commit is contained in:
parent
6a1dad0ce2
commit
85b44695f0
|
@ -229,7 +229,7 @@ func (ip *icmpProxy) Serve(ctx context.Context) error {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if err := ip.sendReply(ctx, reply); err != nil {
|
if err := ip.sendReply(ctx, reply); err != nil {
|
||||||
ip.logger.Error().Err(err).Str("dst", from.String()).Msg("Failed to send ICMP reply")
|
ip.logger.Debug().Err(err).Str("dst", from.String()).Msg("Failed to send ICMP reply")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -220,7 +220,7 @@ func (ip *icmpProxy) handleResponse(ctx context.Context, flow *icmpEchoFlow, buf
|
||||||
attribute.Int("seq", reply.echo.Seq),
|
attribute.Int("seq", reply.echo.Seq),
|
||||||
)
|
)
|
||||||
if err := flow.returnToSrc(reply); err != nil {
|
if err := flow.returnToSrc(reply); err != nil {
|
||||||
ip.logger.Err(err).Str("dst", from.String()).Msg("Failed to send ICMP reply")
|
ip.logger.Debug().Err(err).Str("dst", from.String()).Msg("Failed to send ICMP reply")
|
||||||
tracing.EndWithErrorStatus(span, err)
|
tracing.EndWithErrorStatus(span, err)
|
||||||
return true, err
|
return true, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue