Skip to content

Commit

Permalink
fix: only log client-level errors
Browse files Browse the repository at this point in the history
  • Loading branch information
al-yanna committed Dec 3, 2024
1 parent 020f2fa commit b75663b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graphql-hive/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def send(path, body, _log_type)
request = build_request(uri, body)
response = http.request(request)

if response.code.to_i != 200
if response.code.to_i >= 400 && response.code.to_i < 500
@options[:logger].warn("Unsuccessful response: #{response.code} - #{response.body}")
end

Expand Down

0 comments on commit b75663b

Please sign in to comment.