Skip to content

Commit

Permalink
fix default log level to info (#225)
Browse files Browse the repository at this point in the history
Signed-off-by: “yelusion” <[email protected]>
  • Loading branch information
yelusion2 authored Oct 16, 2023
1 parent 502544d commit c94d9b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/paramtable/base_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func (gp *BaseTable) InitLogCfg() {
gp.Log = log.Config{}
format := gp.LoadWithDefault("log.format", "text")
gp.Log.Format = format
level := gp.LoadWithDefault("log.level", "debug")
level := gp.LoadWithDefault("log.level", "info")
gp.Log.Level = level
gp.Log.Console = gp.ParseBool("log.console", false)
gp.Log.File.Filename = gp.LoadWithDefault("log.file.rootPath", "backup.log")
Expand Down
2 changes: 1 addition & 1 deletion internal/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func initFileLog(cfg *FileLogConfig) (*lumberjack.Logger, error) {
}

func newStdLogger() (*zap.Logger, *ZapProperties) {
conf := &Config{Level: "debug", File: FileLogConfig{}}
conf := &Config{Level: "info", File: FileLogConfig{}}
lg, r, _ := InitLogger(conf, zap.AddCallerSkip(1))
return lg, r
}
Expand Down

0 comments on commit c94d9b1

Please sign in to comment.