remove debug code in OBS client
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user