Validators now log to a file by default (use -o -/--log - for stderr) (#6768) (#6771)

automerge
This commit is contained in:
mergify[bot]
2019-11-06 14:08:22 -08:00
committed by Grimes
parent b2cc259197
commit fbaed07884
5 changed files with 69 additions and 12 deletions

View File

@@ -37,6 +37,9 @@ while [[ -n $1 ]]; do
elif [[ $1 = --skip-poh-verify ]]; then
args+=("$1")
shift
elif [[ $1 = --log ]]; then
args+=("$1" "$2")
shift 2
else
echo "Unknown argument: $1"
$program --help
@@ -79,6 +82,7 @@ args+=(
--rpc-drone-address 127.0.0.1:9900
)
default_arg --gossip-port 8001
default_arg --log -
set -x
# shellcheck disable=SC2086 # Don't want to double quote $program

View File

@@ -143,6 +143,9 @@ while [[ -n $1 ]]; do
elif [[ $1 = --skip-poh-verify ]]; then
args+=("$1")
shift
elif [[ $1 = --log ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 = -h ]]; then
usage "$@"
else
@@ -216,6 +219,7 @@ default_arg --identity "$identity_keypair_path"
default_arg --voting-keypair "$voting_keypair_path"
default_arg --storage-keypair "$storage_keypair_path"
default_arg --ledger "$ledger_dir"
default_arg --log -
if [[ -n $SOLANA_CUDA ]]; then
program=$solana_validator_cuda