From d787e70a1417bf325738c987e89ab4c4858baa30 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 10 Nov 2025 22:36:41 +0100 Subject: [PATCH] cli/connhelper/commandcon: remove warn logs These were originally added in 6f61cf053afc927379cfef91d241539c36d070f6, but at the time, the error wasn't returned. Now that it is, we shouldn't log _and_ return the error. Signed-off-by: Sebastiaan van Stijn --- cli/connhelper/commandconn/commandconn.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cli/connhelper/commandconn/commandconn.go b/cli/connhelper/commandconn/commandconn.go index 4b04f8b39f..8084a65328 100644 --- a/cli/connhelper/commandconn/commandconn.go +++ b/cli/connhelper/commandconn/commandconn.go @@ -233,11 +233,9 @@ func (c *commandConn) Close() error { defer c.closing.Store(false) if err := c.CloseRead(); err != nil { - logrus.Warnf("commandConn.Close: CloseRead: %v", err) return err } if err := c.CloseWrite(); err != nil { - logrus.Warnf("commandConn.Close: CloseWrite: %v", err) return err }