Skip to content

Commit

Permalink
feat: make status code warning smaller
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Gleich <[email protected]>
  • Loading branch information
gleich committed Jan 7, 2025
1 parent 60051fc commit 3876fcb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/apis/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ func SendRequest[T any](req *http.Request) (T, error) {
return zeroValue, err
}
if resp.StatusCode != http.StatusOK {
lumber.Warning(
"status code of",
resp.StatusCode,
"returned from API. Code of 200 expected from",
req.URL.String(),
)
lumber.Warning(resp.StatusCode, "returned from", req.URL.String())
return zeroValue, WarningError
}

Expand Down

0 comments on commit 3876fcb

Please sign in to comment.