This commit is contained in:
aditya.siregar
2024-10-27 20:26:46 +07:00
parent 081a1aa27b
commit 65c4078955
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ func NewPostgres(c config.Database) (*gorm.DB, error) {
}
zapCfg := zap.NewProductionConfig()
zapCfg.Level = zap.NewAtomicLevelAt(zap.DebugLevel) // whatever minimum level
zapCfg.Level = zap.NewAtomicLevelAt(zap.ErrorLevel) // whatever minimum level
zapCfg.DisableCaller = false
// logger, _ := zapCfg.Build()
// db = gorm.Open(sqldblogger.New(logger), db)