whoops cant compile

master v0.2.8
bel 2022-01-27 07:49:46 -07:00
parent bc2efe928a
commit 3c36948269
1 changed files with 2 additions and 2 deletions

View File

@ -297,9 +297,9 @@ func (ntg NTGVision) _search(states []config.State) (io.ReadCloser, error) {
if resp.StatusCode != http.StatusOK {
b, _ := ioutil.ReadAll(resp.Body)
resp.Body.Close()
logtr.Warnf("ntg auth bad status: url=%s, status=%v, body=%s", request.URL.String(), resp.StatusCode, b)
logtr.Debugf("ntg auth bad status: url=%s, status=%v, body=%s", request.URL.String(), resp.StatusCode, b)
if resp.StatusCode > 400 && resp.StatusCode < 404 {
logtr.Warnf("ntg auth bad status: err no auth")
logtr.Debugf("ntg auth bad status: err no auth")
return nil, ErrNoAuth
}
return nil, fmt.Errorf("bad status searching ntg: %d: %s", resp.StatusCode, b)