From f6da8e52b4a4846e4b1e47b522526949e8ddc41e Mon Sep 17 00:00:00 2001 From: Sergei Maklagin Date: Sun, 18 Jan 2026 21:51:30 +0300 Subject: [PATCH] Fix logger --- route/conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/conn.go b/route/conn.go index 18d54c45..5ecca0a3 100644 --- a/route/conn.go +++ b/route/conn.go @@ -303,7 +303,7 @@ func (m *ConnectionManager) connectionCopy(ctx context.Context, source net.Conn, } else { if err == nil { m.logger.DebugContext(ctx, "connection download finished") - } else if !E.IsClosedOrCanceled(err) && !strings.Contains(err.Error(), "NO_ERROR") { + } else if !E.IsClosedOrCanceled(err) && !strings.Contains(err.Error(), "NO_ERROR") && !strings.Contains(err.Error(), "response body closed") { m.logger.ErrorContext(ctx, "connection download closed: ", err) } else { m.logger.TraceContext(ctx, "connection download closed")