As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit c2844b26 authored by ash's avatar ash
Browse files

Always log non-200 responses from the GitLab API.

parent 90b9e113
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -56,7 +56,11 @@ class GitlabNet
end
http.start {|http| http.request(request) }.tap do |resp|
$logger.debug { "Received response #{resp.code} => #{resp.body}" }
if resp.code == "200"
$logger.debug { "Received response #{resp.code} => <#{resp.body}>." }
else
$logger.error { "API call <GET #{url}> failed: #{resp.code} => <#{resp.body}>." }
end
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment