-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Log and notify Sentry when relevant articles are not retrieved. (#2186)
* Log and notify Sentry when relevant articles are not retrieved. This PR implements two things: * Case 1: Info-level logging when no relevant articles are returned. * Case 2: Notify Sentry when there is an error retrieving relevant articles. In that case: * Catch the error and return an empty list, so it doesn't crash the frontend, which can then retrieve to recent articles. * Log a warning. * Notify Sentry. The Sentry message is static and implements a custom exception class, so similar notifications can be grouped together automatically, but includes all information we need in order to debug. Reference: CV2-5932.
- Loading branch information
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters