forked from golang/glog
-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
log filter: ignored by V, used during log call
It's not entirely clear why the filter was copied into Verbose. The only semantic difference is when Verbose get stored and then the filter gets modified: klogV := klog.V(5) klog.SetLogFilter(...) klogV.Info(...) This seems like a very unlikely code pattern and goes against the intention of first initializing logging, then using it. Therefore we can undo the size increase in Verbose and only retrieve the filter when it is needed.
- Loading branch information
Showing
1 changed file
with
12 additions
and
13 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