Skip to content

Commit

Permalink
fix: gorm conf
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Jan 17, 2024
1 parent 8e99fca commit c4b6e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/postgresql.connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func InitPostgresDatabase(conf *cfgldr.Database, isDebug bool) (db *gorm.DB, err error) {
gormConf := &gorm.Config{}
gormConf := &gorm.Config{TranslateError: true}

if !isDebug {
gormConf.Logger = gormLogger.Default.LogMode(gormLogger.Silent)
Expand Down

0 comments on commit c4b6e3c

Please sign in to comment.