Skip to content

Commit

Permalink
do not capture startup logs in log output (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch authored Sep 19, 2023
1 parent 4b2b418 commit 76c5e0a
Showing 1 changed file with 9 additions and 9 deletions.
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

0 comments on commit 76c5e0a

Please sign in to comment.