From 0564a50fb564573d5dcdbeace543f2baec6f934d8e0c07f97bda38cb1b43724f Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Thu, 8 May 2025 13:24:20 +0200 Subject: [PATCH] remove debug code in OBS client --- common/obs_utils.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/common/obs_utils.go b/common/obs_utils.go index 9e10de5..4ec6291 100644 --- a/common/obs_utils.go +++ b/common/obs_utils.go @@ -253,8 +253,6 @@ func (c *ObsClient) ObsRequest(method string, url string, body io.Reader) (*http return res, nil } - LogDebug(res.StatusCode) - if res.StatusCode == 401 { if c.sshkey == "" { LogDebug("setting basic auth") @@ -304,7 +302,6 @@ func (c *ObsClient) ObsRequest(method string, url string, body io.Reader) (*http // Another time with authentification header LogDebug("Trying again with authorization:", req.Header.Get("Authorization")) - res, err = c.client.Do(req) if err != nil { LogError("Authentification failed:", res.StatusCode)