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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,7 @@ function main() {
echo "--randomize-network-passphrase is only supported in the local network" >&2
exit 1
fi
if [ "$ENABLE_LOGS" = "true" ]; then
print_service_logs &
start \
> >(sed "s/^/${cyan}quickstart | $clear/") \
2> >(sed "s/^/${cyan}quickstart | $clear/" >&2)
else
start
fi
start
}

function start() {
Expand All @@ -77,7 +70,14 @@ function start() {
stop_postgres # this gets started in init_db

# launch services
exec_supervisor
if [ "$ENABLE_LOGS" = "true" ]; then
print_service_logs &
exec_supervisor \
> >(sed "s/^/${cyan}quickstart | $clear/") \
2> >(sed "s/^/${cyan}quickstart | $clear/" >&2)
else
exec_supervisor
fi
}

function process_args() {
Expand Down
Loading