Skip to content

Commit

Permalink
chore(log): adding execution id (spinnaker#2244)
Browse files Browse the repository at this point in the history
  • Loading branch information
emjburns authored May 16, 2018
1 parent c9f4ecc commit ca555f1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,13 @@ 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}")
log.debug(
"Received status code {} from status endpoint {} in execution {} in stage {}",
response.statusCode,
statusEndpoint,
stage.execution.id,
stage.id
)
} catch (HttpStatusCodeException e) {
def statusCode = e.getStatusCode()
if (statusCode.is5xxServerError() || statusCode.value() == 429) {
Expand Down

0 comments on commit ca555f1

Please sign in to comment.