Log expansion directive must be on its own line

This commit is contained in:
Michael Vines 2018-08-17 20:58:00 -07:00
parent c2ddd056e2
commit aba63e2c6c
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
1 changed files with 8 additions and 4 deletions

View File

@ -22,10 +22,12 @@ if [[ -z $NO_LEDGER_VERIFY ]]; then
# Note: here we assume this script is actually running on the leader node... # Note: here we assume this script is actually running on the leader node...
sudo solana.ledger-tool --ledger /var/snap/solana/current/config/ledger verify sudo solana.ledger-tool --ledger /var/snap/solana/current/config/ledger verify
else else
echo "^^^ +++ Ledger verify skipped" echo "^^^ +++"
echo "Ledger verify skipped"
fi fi
else else
echo "^^^ +++ Ledger verify skipped (NO_LEDGER_VERIFY defined)" echo "^^^ +++"
echo "Ledger verify skipped (NO_LEDGER_VERIFY defined)"
fi fi
echo "--- $NET_URL: wallet sanity" echo "--- $NET_URL: wallet sanity"
@ -57,13 +59,15 @@ if [[ -z $NO_VALIDATOR_SANITY ]]; then
) )
wc -l validator.log wc -l validator.log
if grep -C100 panic validator.log; then if grep -C100 panic validator.log; then
echo "^^^ +++ Panic observed" echo "^^^ +++"
echo "Panic observed"
exit 1 exit 1
else else
echo "Validator log looks ok" echo "Validator log looks ok"
fi fi
else else
echo "^^^ +++ Validator sanity disabled (NO_VALIDATOR_SANITY defined)" echo "^^^ +++"
echo "Validator sanity disabled (NO_VALIDATOR_SANITY defined)"
fi fi
exit 0 exit 0