From 76c5e0ad7fb73a6b3aa7b51815d106af5f7dc23b Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Tue, 19 Sep 2023 10:21:50 -0700 Subject: [PATCH] do not capture startup logs in log output (#488) --- start | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/start b/start index 5b528c5e..46da26d4 100644 --- a/start +++ b/start @@ -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() { @@ -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() {