Add configurable RUST_LOG for ./net.sh sanity
This commit is contained in:
@ -37,9 +37,6 @@ Operate a configured testnet
|
|||||||
-r - Reuse existing node/ledger configuration from a
|
-r - Reuse existing node/ledger configuration from a
|
||||||
previous |start| (ie, don't run ./mulitnode-demo/setup.sh).
|
previous |start| (ie, don't run ./mulitnode-demo/setup.sh).
|
||||||
|
|
||||||
Note: if RUST_LOG is set in the environment it will be propogated into the
|
|
||||||
network nodes.
|
|
||||||
|
|
||||||
sanity/start/update-specific options:
|
sanity/start/update-specific options:
|
||||||
-o noLedgerVerify - Skip ledger verification
|
-o noLedgerVerify - Skip ledger verification
|
||||||
-o noValidatorSanity - Skip fullnode sanity
|
-o noValidatorSanity - Skip fullnode sanity
|
||||||
@ -51,6 +48,8 @@ Operate a configured testnet
|
|||||||
logs-specific options:
|
logs-specific options:
|
||||||
none
|
none
|
||||||
|
|
||||||
|
Note: if RUST_LOG is set in the environment it will be propogated into the
|
||||||
|
network nodes.
|
||||||
EOF
|
EOF
|
||||||
exit $exitcode
|
exit $exitcode
|
||||||
}
|
}
|
||||||
@ -278,7 +277,7 @@ sanity() {
|
|||||||
set -x
|
set -x
|
||||||
# shellcheck disable=SC2029 # remote-client.sh args are expanded on client side intentionally
|
# shellcheck disable=SC2029 # remote-client.sh args are expanded on client side intentionally
|
||||||
ssh "${sshOptions[@]}" "$host" \
|
ssh "${sshOptions[@]}" "$host" \
|
||||||
"./solana/net/remote/remote-sanity.sh $sanityExtraArgs"
|
"./solana/net/remote/remote-sanity.sh $sanityExtraArgs \"$RUST_LOG\""
|
||||||
) || ok=false
|
) || ok=false
|
||||||
|
|
||||||
$metricsWriteDatapoint "testnet-deploy net-sanity-complete=1"
|
$metricsWriteDatapoint "testnet-deploy net-sanity-complete=1"
|
||||||
|
@ -50,6 +50,9 @@ while [[ $1 = -o ]]; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
RUST_LOG="$1"
|
||||||
|
export RUST_LOG=${RUST_LOG:-solana=info} # if RUST_LOG is unset, default to info
|
||||||
|
|
||||||
source net/common.sh
|
source net/common.sh
|
||||||
loadConfigFile
|
loadConfigFile
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user