Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delay capturing logs from services and the start script until after the setup is complete #488

Merged
merged 4 commits into from
Sep 19, 2023

Conversation

leighmcculloch
Copy link
Member

What

Delay capturing logs from services and the start script until after the setup is complete.

Why

When starting the container without the --logs option, a set of output is seen that shows what the network is, that a password needs entering for persistent mode, etc.

When starting the container with the --logs option, those startup logs get funneled into the log output and get mixed up with a heap of stellar-core logs.

What's worse is the persistent mode postgres read password from stdin functionality doesn't work properly with --logs and causes problems as the prompt isn't rendered before the STDIN is waited on.

The startup output doesn't need to be captured into the log output. We can delay when we start the log output until after the startup output is complete.

Close #464

@leighmcculloch leighmcculloch changed the title do not capture startup logs in log output Delay capturing logs from services and the start script until after the setup is complete Sep 14, 2023
@leighmcculloch leighmcculloch marked this pull request as ready for review September 14, 2023 21:25
@leighmcculloch leighmcculloch merged commit 76c5e0a into master Sep 19, 2023
74 checks passed
@leighmcculloch leighmcculloch deleted the i464-2 branch September 19, 2023 17:21
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.

persistent mode hangs on first startup
2 participants