From 770e52732339157b1eaa76807ab96b1b02cff46c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Thu, 28 May 2026 14:16:11 -0400 Subject: [PATCH] internal/rsync: Log deferred errors with WarnOnError MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- internal/rsync/rsync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rsync/rsync.go b/internal/rsync/rsync.go index 2e8ee543de..36c7431dc9 100644 --- a/internal/rsync/rsync.go +++ b/internal/rsync/rsync.go @@ -145,7 +145,7 @@ func sendSetup(name string, path string, bwlimit string, execPath string, featur return nil, nil, nil, err } - defer func() { _ = l.Close() }() + defer logger.WarnOnError(l.Close, "Failed to close listener") /* * Here, the path /tmp/foo is ignored. Since we specify localhost,