From d70a8228717a3a51b7ff05747a028e1141c19af9 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Sun, 20 Feb 2022 13:32:53 +0100 Subject: [PATCH] Do not log error to stdout directly --- restapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restapi.go b/restapi.go index 7aa9718f5..9e0ba1d4c 100644 --- a/restapi.go +++ b/restapi.go @@ -109,7 +109,7 @@ func (s *Session) RequestWithLockedBucket(method, urlStr, contentType string, b defer func() { err2 := resp.Body.Close() if err2 != nil { - log.Println("error closing resp body") + s.log(LogDebug, "error closing resp body") } }()