forked from golang/glog
-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KObjs used to do significant work regardless whether the log entry would get written at all. We can delay doing that work and (typically) skip it entirely by just capturing the parameter and lazily converting to the actual slice if needed in MarshalLog. This depends on MarshalLog support in klog and other logger backends. If changing the output to a string is acceptable, then adding a String function is a safer alternative.
- Loading branch information
Showing
2 changed files
with
23 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