Skip to content

Add HTTP status code to Jira connect client logs

What does this MR do and why?

This adds the HTTP status code to Jira client log messages.

If the client receive a status code that it doesn't know how to handle, it logs Unknown error with the response body. The logs show that some of these errors have successful responses like this one:

{
   "unknownIssueKeys":[
      
   ],
   "acceptedBuilds":[
      {
         "pipelineId":"37004712",
         "buildNumber":5216
      }
   ],
   "rejectedBuilds":[
      
   ]
}
}

The response is only considered to be successful if the status is 200 but there might be other success codes like 201. Adding the status code to the logs will help to see what other codes it receives.

Related to #352411

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Andy Schoenen

Merge request reports