forked from uber-go/zap
-
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.
zapcore: Support ObjectMarshaler for error types
Previously, implementing `ObjectMarshaler` on an error type was ignored unless the error was logged with `zap.Any` or `zap.Object`. We should respect the `ObjectMarshaler` instead as this is more flexible than the basic `error` or `fmt.Formatter` interfaces. Resolves uber-go#1365
- Loading branch information
1 parent
e5745d6
commit 6a4971d
Showing
2 changed files
with
88 additions
and
37 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