Skip to content

Conversation

@xar
Copy link
Owner

@xar xar commented Jun 28, 2025

Addresses timeout issue #37 by replacing silent error handling with comprehensive logging

Changes

  • Enhanced waitForPostgreSQLReady() with detailed error logging
  • Added comprehensive logging to password creation process
  • Created execAsyncWithLogging() helper for better command visibility
  • Improved PostgreSQL process startup and initialization logging

Testing

Run pgforge create bilisdb2 --port 5891 to see detailed diagnostic output

Generated with Claude Code

- Improve waitForPostgreSQLReady() with detailed error logging and troubleshooting info
- Add comprehensive logging to createDatabaseAndUser() password creation process
- Capture PostgreSQL stderr output during temporary startup for debugging
- Create execAsyncWithLogging() helper for better command execution visibility
- Enhance initializeDatabase() and startPostgreSQLProcess() with progress logging
- Add high-level instance creation progress logging

These changes address the timeout issue (issue #37) by providing detailed
diagnostics when PostgreSQL fails to start during the password creation
process, replacing silent error swallowing with actionable error messages.

Co-authored-by: Samuel <xar@users.noreply.github.com>
@xar xar merged commit 0c32a98 into main Jun 28, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants