Skip to content

Commit

Permalink
chore(monitorWebhook): add status code from the url for debugging (sp…
Browse files Browse the repository at this point in the history
  • Loading branch information
emjburns authored May 16, 2018
1 parent 088fdc5 commit c9f4ecc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class MonitorWebhookTask implements OverridableTimeoutRetryableTask {
def response
try {
response = webhookService.getStatus(statusEndpoint, customHeaders)
log.debug("Recieved status code ${response.statusCode} from status endpoint ${statusEndpoint} in stage ${stage.id}")
} catch (HttpStatusCodeException e) {
def statusCode = e.getStatusCode()
if (statusCode.is5xxServerError() || statusCode.value() == 429) {
Expand Down

0 comments on commit c9f4ecc

Please sign in to comment.