Skip to content

Commit

Permalink
Merge pull request #1463 from zhanghaixin246/feature_modify_mysql_log_zh
Browse files Browse the repository at this point in the history
feat:解决mysql配置日志等级不生效问题
  • Loading branch information
奇淼(piexlmax committed Jun 30, 2023
2 parents 40211e0 + 762c77b commit 3b02b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/initialize/internal/gorm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3b02b2f

Please sign in to comment.