From 74389a05e7598d5b569ac4f9cabbc09d790ba22d 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..9189f08aa 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(LogError, "error closing resp body") } }()