commit | 65d674618f712aa808a7d0104131b9206fc3d5ad | [log] [tgz] |
---|---|---|
author | Michael Berlin <mberlin@google.com> | Fri Jul 24 16:44:32 2015 -0700 |
committer | Michael Berlin <mberlin@google.com> | Fri Jul 24 16:44:32 2015 -0700 |
tree | e32ed501b5234e923a509e0c2c721c55b236f9c3 | |
parent | 44145f04b68cf362d9c4df2182967c2275eaefed [diff] |
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.