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

chore: Log after updating the notification marker #1232

Merged
merged 3 commits into from
Jan 24, 2025

Conversation

nikclayton
Copy link
Contributor

Suspect a crash is occurring in the database update on the preceding
line. Log afterwards; if the log entry is missing the crash location
is confirmed.

…xception

Previous code had legacy `try ... catch` blocks that could catch all
exceptions, including `CancellationException`, thrown if the job of a
suspending function is cancelled.

Indiscriminately catching those can interfere with cancellation, so
use `currentCoroutineContext().ensureActive()` to rethrow the
exception if the job has been cancelled.
Suspect a crash is occurring in the database update on the preceding
line. Log afterwards; if the log entry is missing the crash location
is confirmed.
@nikclayton nikclayton merged commit b1ed66f into pachli:main Jan 24, 2025
24 checks passed
@nikclayton nikclayton deleted the log-marker-update branch January 24, 2025 17:16
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