Skip to content

Commit

Permalink
Change the log_file and log_flush flags to true as default
Browse files Browse the repository at this point in the history
  • Loading branch information
mstmdev committed Dec 8, 2021
1 parent 8cbdf8b commit 030f04f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/gofs/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ func parseFlags() {

// log
flag.IntVar(&logLevel, "log_level", int(log.InfoLevel), "set log level, default is INFO. DEBUG=0 INFO=1 WARN=2 ERROR=3")
flag.BoolVar(&enableFileLogger, "log_file", false, "enable the file logger")
flag.BoolVar(&enableFileLogger, "log_file", true, "enable the file logger")
flag.StringVar(&logDir, "log_dir", "./logs/", "set the directory of log file")
flag.BoolVar(&logFlush, "log_flush", false, "enable auto flush log with interval")
flag.BoolVar(&logFlush, "log_flush", true, "enable auto flush log with interval")
flag.DurationVar(&logFlushInterval, "log_flush_interval", time.Second*3, "set the log flush interval duration, you need to enable -log_flush first")

// daemon
Expand Down

0 comments on commit 030f04f

Please sign in to comment.