-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Getting rid of global state is a nice step forward in improving testability. Caller code (and more importantly tests) can now fully control the registered fields or the logger used to produce messages. All while not vastly changing the current interface, which keeps the global logging functions it used to have. Those obviously still rely on shared global state.
- Loading branch information
1 parent
84d5c3a
commit 01b6af8
Showing
5 changed files
with
206 additions
and
94 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
Oops, something went wrong.