diff --git a/store/db.go b/store/db.go index 713cf17..41c67d6 100644 --- a/store/db.go +++ b/store/db.go @@ -101,6 +101,9 @@ func New(t DBTYPE) *Store { func (s *Store) Connect() (db *gorm.DB, err error) { glog := logger.Default + l.Trace().Int("level", viper.GetInt("log.level")). + Bool("tog_info", zerolog.Level(viper.GetInt("log.level")) <= zerolog.DebugLevel). + Msg("log level") if zerolog.Level(viper.GetInt("log.level")) <= zerolog.DebugLevel { l.Debug().Msg("set gorm log level to info") glog.LogMode(logger.Info)