forked from golang/glog
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the log duplication issue for --log-file
when we use a `log-file`, all the items in l.file array point to the same file. we are currently using a switch statement with fallthrough which ends up logging the same line multiple times. So check if we are using a `log-file` and just write the data once. Change-Id: I3396558f487daf9db2c5e21e29a7a6bee618d64a
- Loading branch information
Showing
2 changed files
with
56 additions
and
16 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