Skip to content

Commit

Permalink
PTEUDO-2182: Throw an error if pgbouncer is unable to start (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
apulariravichandran authored Jan 13, 2025
1 parent e4a5f9a commit e7923bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dbproxy/dbproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ func (dbp *DBProxy) Start(ctx context.Context) error {
}

if err := pgbouncer.Start(context.TODO(), cfg.PGBStartScript); err != nil {
return fmt.Errorf("pgbouncer.Start failed: %w", err)
log.Fatalf("FATAL: Unable to start pgbouncer: %v", err)
panic(fmt.Sprintf("Unable to start pgbouncer: %v", err))
}

// Watch for ongoing changes and regenerate pgbouncer config
Expand Down

0 comments on commit e7923bd

Please sign in to comment.