diff --git a/store/db.go b/store/db.go index f7ef93e..e366689 100644 --- a/store/db.go +++ b/store/db.go @@ -101,7 +101,7 @@ func New(t DBTYPE) *Store { func (s *Store) Connect() (db *gorm.DB, err error) { 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) }