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

fix: replace fatal logs with proper error handling #707

Merged
merged 6 commits into from
Sep 25, 2024

Conversation

rolznz
Copy link
Contributor

@rolznz rolznz commented Sep 25, 2024

Fixes #702

Removes all fatal logs as they ungracefully exit the app.

  • fires nwc shutdown event synchronously to prevent saving access token when db is closed
  • requires at least one minute leeway for access token expiry

- fires nwc shutdown event synchronously
- requires at least one minute leeway for access token expiry
alby/alby_oauth_service.go Outdated Show resolved Hide resolved
Copy link
Contributor

@bumi bumi left a comment

Choose a reason for hiding this comment

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

meh, so much Golang boilderplate :)

utACK. looks ok to me.

@rolznz rolznz merged commit 8ebb4ad into master Sep 25, 2024
9 checks passed
@rolznz rolznz deleted the fix/remove-fatal-logs branch September 25, 2024 10:31
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.

Bug: failed to save new auth token while shutting down
2 participants