Compare commits

..

1 Commits

Author SHA1 Message Date
bel
3c36948269 whoops cant compile 2022-01-27 07:49:46 -07:00

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)