Skip to content

Commit

Permalink
Merge pull request #39 from vincepri/logtostderr-true
Browse files Browse the repository at this point in the history
Default logtostderr to true
  • Loading branch information
k8s-ci-robot authored Jan 31, 2019
2 parents 19f20cc + dc33890 commit efc166b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klog.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ func InitFlags(flagset *flag.FlagSet) {
}
flagset.StringVar(&logging.logDir, "log_dir", "", "If non-empty, write log files in this directory")
flagset.StringVar(&logging.logFile, "log_file", "", "If non-empty, use this log file")
flagset.BoolVar(&logging.toStderr, "logtostderr", false, "log to standard error instead of files")
flagset.BoolVar(&logging.toStderr, "logtostderr", true, "log to standard error instead of files")
flagset.BoolVar(&logging.alsoToStderr, "alsologtostderr", false, "log to standard error as well as files")
flagset.Var(&logging.verbosity, "v", "number for the log level verbosity")
flagset.BoolVar(&logging.skipHeaders, "skip_headers", false, "If true, avoid header prefixes in the log messages")
Expand Down

0 comments on commit efc166b

Please sign in to comment.