update
parent
1ad2b8ef06
commit
bd686effbe
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue