Browse Source

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"
pull/831/head
Chris Lu 6 years ago
committed by GitHub
parent
commit
8613e4f558
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      weed/glog/glog.go
  2. 2
      weed/glog/glog_file.go

2
weed/glog/glog.go

@ -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.
//

2
weed/glog/glog_file.go

@ -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 != "" {

Loading…
Cancel
Save