remove debug code in OBS client

This commit is contained in:
2025-05-08 13:24:20 +02:00
parent 4f7db36123
commit 0564a50fb5

View File

@@ -253,8 +253,6 @@ func (c *ObsClient) ObsRequest(method string, url string, body io.Reader) (*http
return res, nil return res, nil
} }
LogDebug(res.StatusCode)
if res.StatusCode == 401 { if res.StatusCode == 401 {
if c.sshkey == "" { if c.sshkey == "" {
LogDebug("setting basic auth") 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 // Another time with authentification header
LogDebug("Trying again with authorization:", req.Header.Get("Authorization")) LogDebug("Trying again with authorization:", req.Header.Get("Authorization"))
res, err = c.client.Do(req) res, err = c.client.Do(req)
if err != nil { if err != nil {
LogError("Authentification failed:", res.StatusCode) LogError("Authentification failed:", res.StatusCode)