-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
ctx
everywhere & render exit errors properly
The `context.Context` related changes are neccessary as otherwise you will have to wait for 5m when having Icinga notification started with invalid database config due to the internal database.Connect retrials. Lastly, the logging related changes are useful as we want to properly render the stack traces when we unexpectedly exit from the main function instead of wrapping the error in a confusing `zap.Error()` json key.
- Loading branch information
Showing
2 changed files
with
17 additions
and
15 deletions.
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