This repository has been archived by the owner on Nov 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: debug log global registrations and logger overwrites (#63)
* feat: debug log global registrations and logger overwrites * refactor: extract `restore` as fn * refactor: remove an excessive level of describe nesting * refactor: assert multiple times instead of separating logger tests * refactor: rename restore better * test: fix tests by ignoring alerts about the logger being set * feat: move debuglogging global to the end of the registration ... that's to assure we really did register it, not only attempted. Any short-circuits will be logged as well, so the debug would be unneccessary in those cases. * test: fix tests to ignore the messages created in setup * feat: add stack trace to DiagLogger overwrite warnings * test: make sure only the second global logger logs after reregistration * feat: revert changes to test structure
- Loading branch information
Showing
6 changed files
with
86 additions
and
51 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
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
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