-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consistently use logutils.TypeAttr (#49969)
When converting to slog there have been various mechanisms used to include an objects type in a slog attribute to replace %T from a logrus message. This unifies all type attribute to use logutils.typeAttr instead of calling reflect/fmt directly. The former ensures that the type is only calculated if the message is going to be logged.
- Loading branch information
1 parent
637fc65
commit 6029741
Showing
3 changed files
with
8 additions
and
7 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