Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve reissuing error logging #320

Merged
merged 4 commits into from
Jul 26, 2023
Merged

Conversation

StuAA78
Copy link
Contributor

@StuAA78 StuAA78 commented Jul 25, 2023

https://eaflood.atlassian.net/browse/WATER-4036

We found that checking the logs for reissuing errors caused by the Charging Module returning an error response wasn't as straightforward as it could be; instead of having all the info logged in one error, we had to find the separately-logged CM error response to see why the request errored. This change adds the response body to our logged error (as responseBody) so we don't need to go hunting for the reason for the error (eg. "Invoice has already been rebilled").

https://eaflood.atlassian.net/browse/WATER-4036

We found that checking the logs for reissuing errors caused by the Charging Module returning an error response wasn't as straightforward as it could be; instead of having all the info logged in one error, we had to find the separately-logged CM error response to see why the request errored. This change adds the response body to our logged error so we don't need to go hunting for the reason for the error (eg. "Invoice has already been rebilled").
@StuAA78 StuAA78 added the enhancement New feature or request label Jul 25, 2023
@StuAA78 StuAA78 self-assigned this Jul 25, 2023
StuAA78 added 2 commits July 25, 2023 18:18
We break out the "check `responseBody`" assertions into their own tests and have the stubbed services return more realistic error responses
@StuAA78 StuAA78 marked this pull request as ready for review July 25, 2023 18:00
Copy link
Contributor

@Jozzey Jozzey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@StuAA78 StuAA78 merged commit ed949da into main Jul 26, 2023
@StuAA78 StuAA78 deleted the improve-reissuing-error-logging branch July 26, 2023 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants