Merge pull request #827 from suilongfei/master

change log_dir to logdir for the "flag redefined:log_dir" error when use another package with "github.com/golang/glog"
This commit is contained in:
Chris Lu 2019-01-10 09:10:07 -08:00 committed by GitHub
commit 8613e4f558
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@
// -stderrthreshold=ERROR
// Log events at or above this severity are logged to standard
// error as well as to files.
// -log_dir=""
// -logdir=""
// Log files will be written to this directory instead of the
// default temporary directory.
//

View file

@ -38,7 +38,7 @@ var logDirs []string
// If non-empty, overrides the choice of directory in which to write logs.
// See createLogDirs for the full list of possible destinations.
var logDir = flag.String("log_dir", "", "If non-empty, write log files in this directory")
var logDir = flag.String("logdir", "", "If non-empty, write log files in this directory")
func createLogDirs() {
if *logDir != "" {