master
Evan Chen 2022-01-09 03:41:47 +08:00
parent 368d794da8
commit b442255a71
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ func (s *Store) Connect() (db *gorm.DB, err error) {
glog := logger.Default
l.Trace().Int("level", viper.GetInt("log.level")).
Bool("tog_info", zerolog.Level(viper.GetInt("log.level")) <= zerolog.DebugLevel).
Bool("tog_info", (zerolog.Level(viper.GetInt("log.level")) <= zerolog.DebugLevel)).
Msg("log level")
if zerolog.Level(viper.GetInt("log.level")) <= zerolog.DebugLevel {
l.Debug().Msg("set gorm log level to info")