From 1ad2b8ef06b13f5843b8d1f70e5d9dcef18ba44e Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Sun, 9 Jan 2022 03:34:22 +0800 Subject: [PATCH] update --- store/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }