Commit 65d6746
committed
Fix problem that -log_dir will not be respected when anything is logged before flag.Parse().
Before this change, premature logging resulted into log files being put in the default location (e.g. /tmp), but not the one specified by the log_dir flag.
After this change, premature logging will not result into the creation of the log files yet. Instead, the log message will be printed to stderr.1 parent 44145f0 commit 65d6746
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
679 | | - | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
680 | 683 | | |
681 | 684 | | |
682 | 685 | | |
| |||
0 commit comments