master
Evan Chen 2022-01-09 03:34:22 +08:00
parent db40830da2
commit 1ad2b8ef06
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ func New(t DBTYPE) *Store {
func (s *Store) Connect() (db *gorm.DB, err error) { func (s *Store) Connect() (db *gorm.DB, err error) {
glog := logger.Default glog := logger.Default
if zerolog.Level(viper.GetInt("log.level")) == zerolog.DebugLevel { if zerolog.Level(viper.GetInt("log.level")) <= zerolog.DebugLevel {
glog.LogMode(logger.Info) glog.LogMode(logger.Info)
} }