This commit is contained in:
aditya.siregar
2024-08-10 23:52:09 +07:00
parent 2fd676ef3e
commit 414c980c13
12 changed files with 68 additions and 28 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ func NewPostgres(c config.Database) (*gorm.DB, error) {
zapCfg := zap.NewProductionConfig()
zapCfg.Level = zap.NewAtomicLevelAt(zap.DebugLevel) // whatever minimum level
zapCfg.DisableCaller = true
zapCfg.DisableCaller = false
// logger, _ := zapCfg.Build()
// db = gorm.Open(sqldblogger.New(logger), db)