Merge pull request #1463 from zhanghaixin246/feature_modify_mysql_log_zh

feat:解决mysql配置日志等级不生效问题
This commit is contained in:
奇淼(piexlmax
2023-06-30 19:17:12 +08:00
committed by GitHub

View File

@@ -29,7 +29,7 @@ func (g *_gorm) Config(prefix string, singular bool) *gorm.Config {
},
DisableForeignKeyConstraintWhenMigrating: true,
}
_default := logger.New(NewWriter(log.New(os.Stdout, "\r\n", log.LstdFlags)), logger.Config{
_default := logger.New(log.New(os.Stdout, "\r\n", log.LstdFlags), logger.Config{
SlowThreshold: 200 * time.Millisecond,
LogLevel: logger.Warn,
Colorful: true,