-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It makes no sense to risk panicking from within logging routine just because the caller botched their x.Marshall() method. This might impact the production app, if they don't exhaustively test marshaling. Correctness of logging is not worth THAT much. Also, move testing code to _test.go. This means it won't be compiled for live code.
- Loading branch information
1 parent
e3a860c
commit ab40882
Showing
2 changed files
with
32 additions
and
29 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