Skip to content

Conversation

ff137
Copy link
Contributor

@ff137 ff137 commented Apr 29, 2025

Relates to trying to resolve webhooks being emitted before being written to the DB:

These logging changes are done as a separate improvement, and a precursor to refactoring the event bus (#3690)


I'm taking the approach that all CRUD actions should be logged, at least at debug level. And if something raises an exception, there should be a log right before it. Some of the exceptions should just log info (duplicate record, or not found), and others should log warnings. Error logs are reserved for when something goes wrong. So that's what I tried to adhere to.

🚧
I'll run a test suite with these changes, and see if the logging is reasonable or not.

@ff137 ff137 force-pushed the improve-base-record-logging branch from ebbc082 to 9463717 Compare April 30, 2025 09:53
@ff137 ff137 self-assigned this Apr 30, 2025
@ff137 ff137 force-pushed the improve-base-record-logging branch from 2cc735d to b77505f Compare April 30, 2025 12:47
@ff137 ff137 force-pushed the improve-base-record-logging branch from b77505f to f8dd079 Compare May 13, 2025 16:45
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
78.0% Coverage on New Code (required ≥ 80%)
12.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant