Skip to content

Commit 85b4469

Browse files
committed
TUN-6941: Reduce log level to debug when failing to proxy ICMP reply
1 parent 6a1dad0 commit 85b4469

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ingress/icmp_darwin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func (ip *icmpProxy) Serve(ctx context.Context) error {
229229
continue
230230
}
231231
if err := ip.sendReply(ctx, reply); err != nil {
232-
ip.logger.Error().Err(err).Str("dst", from.String()).Msg("Failed to send ICMP reply")
232+
ip.logger.Debug().Err(err).Str("dst", from.String()).Msg("Failed to send ICMP reply")
233233
continue
234234
}
235235
}

ingress/icmp_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func (ip *icmpProxy) handleResponse(ctx context.Context, flow *icmpEchoFlow, buf
220220
attribute.Int("seq", reply.echo.Seq),
221221
)
222222
if err := flow.returnToSrc(reply); err != nil {
223-
ip.logger.Err(err).Str("dst", from.String()).Msg("Failed to send ICMP reply")
223+
ip.logger.Debug().Err(err).Str("dst", from.String()).Msg("Failed to send ICMP reply")
224224
tracing.EndWithErrorStatus(span, err)
225225
return true, err
226226
}

0 commit comments

Comments
 (0)