Improve logging around status setting on PR builds
This should help us debug issues a bit better.
@@ -459,11 +459,18 @@ class GitHubService(Service):
if resp.status_code in [401, 403, 404]:
log.info(
'GitHub project does not exist or user does not have '
- 'permissions: project=%s',
+ 'permissions: project=%s, user=%s',
project,
+ self.user,
)
return False
+ log.warning(
+ 'Unknown GitHub status API response: project=%s, user=%s, status_code=%s',
+ project,
+ self.user,
+ resp.status_code
+ )
return False
# Catch exceptions with request or deserializing JSON
