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

Update log and errbit notifiers #665

Merged
merged 2 commits into from
Jun 21, 2023
Merged

Update log and errbit notifiers #665

merged 2 commits into from
Jun 21, 2023

Conversation

Cruikshanks
Copy link
Member

When working on Move ChargeVersionsMetadataImport out of NALD we encountered an error. That was expected; we were mid-implementation. What we didn't expect was

  • the lack of detail in the log
  • that attempting to view the error in Errbit caused an error

Suffice it to say, we realised our notifier implementation was wrong. We were passing things incorrectly to both pino and errbit. Better handle errors in Notifiers goes into more detail about the issue and what we did to resolve it.

That is our main repo and the place we copied the current implementation of GlobalNotifier and BaseNotifier. So, we did the original fixes there. This change updates the copies of those notifiers in this repo to include the fixes.

When working on [Move ChargeVersionsMetadataImport out of NALD](#661) we encountered an error. That was expected; we were mid-implementation. What we didn't expect was

- the lack of detail in the log
- that attempting to view the error in Errbit caused an error

Suffice to say, we realised our notifier implementation was wrong. We were passing things incorrectly to both [pino](https://github.com/pinojs/pino) and [errbit](https://github.com/errbit/errbit). [Better handle errors in Notifiers](DEFRA/water-abstraction-system#273) goes into more detail about the issue and what we did to resolve it.

That is our main repo and the place we copied the current implementation of `GlobalNotifier` and `BaseNotifier` from. So, we did the original fixes there. This change updates the copies of those notifiers in this repo to include the fixes.
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Jun 21, 2023
@Cruikshanks Cruikshanks self-assigned this Jun 21, 2023
@Cruikshanks Cruikshanks marked this pull request as ready for review June 21, 2023 20:34
@Cruikshanks Cruikshanks merged commit f77ab92 into main Jun 21, 2023
@Cruikshanks Cruikshanks deleted the update-notifiers branch June 21, 2023 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Refactoring, tidying up or other work which supports the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant