diff --git a/ping/destination.go b/ping/destination.go index 0441158..3b87c74 100644 --- a/ping/destination.go +++ b/ping/destination.go @@ -63,7 +63,7 @@ func (d *Destination) loopRead() { } err = d.routeContext.WritePacket(buffer.Bytes()) if err != nil { - d.logger.Error(d.ctx, E.Cause(err, "write ICMP echo reply")) + d.logger.ErrorContext(d.ctx, E.Cause(err, "write ICMP echo reply")) } buffer.Release() }