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