From 8500d51a4af2ed21c60b16f569fa1b4500c1855a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyelusion=E2=80=9D?= Date: Mon, 16 Oct 2023 15:42:02 +0800 Subject: [PATCH] fix default log level to info --- core/paramtable/base_table.go | 2 +- internal/log/log.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/paramtable/base_table.go b/core/paramtable/base_table.go index 340489ff..b73e2985 100644 --- a/core/paramtable/base_table.go +++ b/core/paramtable/base_table.go @@ -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") diff --git a/internal/log/log.go b/internal/log/log.go index 97bd4acd..8cb9a7ec 100644 --- a/internal/log/log.go +++ b/internal/log/log.go @@ -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 }