Skip to content

Commit

Permalink
fix db logging issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiidb committed Jul 11, 2023
1 parent ca709a9 commit f205faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func OpenDB(config *Config) (db *gorm.DB, err error) {
}
//don't print warnings for slow sql
//because we use db transactions that span the rabbitmq publish operation
db.Logger.LogMode(logger.Error)
db.Logger = db.Logger.LogMode(logger.Error)
sqlDB, err := db.DB()
if err != nil {
return nil, err
Expand Down

0 comments on commit f205faa

Please sign in to comment.