From 43b89aeeee7a9d7f6967239b9e7df190c6b14973 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sat, 25 May 2019 16:26:59 -0700 Subject: [PATCH] fix: log date of restart to stdout too --- bin/blockexplorer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/blockexplorer.sh b/bin/blockexplorer.sh index ea423ab8..d79fbe13 100755 --- a/bin/blockexplorer.sh +++ b/bin/blockexplorer.sh @@ -54,7 +54,7 @@ while true; do if [[ -z $api ]] || ! kill -0 "$api"; then logfile="$cwd"/solana-blockexplorer-api.log echo "Starting api process (logfile: $logfile)" - date >> "$logfile" + date | tee -a "$logfile" npm run start-prod:api >> "$logfile" 2>&1 & api=$! echo " pid: $api" @@ -63,7 +63,7 @@ while true; do if [[ -z $ui ]] || ! kill -0 "$ui"; then logfile="$cwd"/solana-blockexplorer-ui.log echo "Starting ui process (logfile: $logfile)" - date >> "$logfile" + date | tee -a "$logfile" npm run start-prod:ui >> "$logfile" 2>&1 & ui=$! echo " pid: $ui"