master
Evan Chen 2022-01-09 03:31:38 +08:00
parent 3dabbb612f
commit e15d29b758
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ func New(t DBTYPE) *Store {
// Connect to db and store db connection to var DB // Connect to db and store db connection to var DB
func (s *Store) Connect() (db *gorm.DB, err error) { func (s *Store) Connect() (db *gorm.DB, err error) {
s.config = &gorm.Config{ s.config = &gorm.Config{
Logger: logger.Default, Logger: logger.Default.LogMode(logger.Info),
SkipDefaultTransaction: true, SkipDefaultTransaction: true,
} }
if s.Prod { if s.Prod {