From f6eeae55e58a4991e25f29348a6e3463855a8fdf Mon Sep 17 00:00:00 2001 From: Roman Golov Date: Wed, 4 Sep 2024 22:16:48 +0300 Subject: [PATCH] Hide EOF error in recvMsg logs --- log/driver.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/log/driver.go b/log/driver.go index bc775a226..45363a64a 100644 --- a/log/driver.go +++ b/log/driver.go @@ -5,6 +5,7 @@ import ( "time" "github.com/ydb-platform/ydb-go-sdk/v3/internal/secret" + "github.com/ydb-platform/ydb-go-sdk/v3/internal/xerrors" "github.com/ydb-platform/ydb-go-sdk/v3/trace" ) @@ -302,7 +303,7 @@ func internalDriver(l Logger, d trace.Detailer) trace.Driver { start := time.Now() return func(info trace.DriverConnStreamRecvMsgDoneInfo) { - if info.Error == nil { + if xerrors.HideEOF(info.Error) == nil { l.Log(ctx, "done", latencyField(start), )