master
Evan Chen 2022-01-09 03:35:51 +08:00
parent 1ad2b8ef06
commit bd686effbe
1 changed files with 1 additions and 0 deletions

View File

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