Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(logging): Support numbers when unmarshaling Severity (#4216)
* fix(logging): Support numbers when unmarshaling Severity logging.Entry.Severity is written out as a JSON number during Marshalling but has an UnmarshalJSON method that only supports Severity as as string. This commit adds support to unmarshal JSON numbers in addition to strings so Marshalling then Unmarshalling the same object works without error * Run go fmt
- Loading branch information
Showing
2 changed files
with
38 additions
and
3 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