TUN-6941: Reduce log level to debug when failing to proxy ICMP reply

This commit is contained in:
João Oliveirinha 2022-11-14 11:22:38 +00:00
parent 6a1dad0ce2
commit 85b44695f0
2 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,7 @@ func (ip *icmpProxy) Serve(ctx context.Context) error {
continue
}
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
}
}

View File

@ -220,7 +220,7 @@ func (ip *icmpProxy) handleResponse(ctx context.Context, flow *icmpEchoFlow, buf
attribute.Int("seq", reply.echo.Seq),
)
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)
return true, err
}