start.sh: LOG_LEVEL refactoring [skip ci]

This commit is contained in:
Ștefan Talpalaru 2020-03-09 19:05:17 +01:00
parent 4ad076f7c3
commit f29bfef5a7
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 2 additions and 7 deletions

View File

@ -12,7 +12,7 @@ mkdir -p "$VALIDATORS_DIR"
cd "$GIT_ROOT" cd "$GIT_ROOT"
CUSTOM_NIMFLAGS="${NIMFLAGS} -d:chronicles_log_level=TRACE -d:chronicles_sinks:textlines,json[file]" CUSTOM_NIMFLAGS="${NIMFLAGS} -d:chronicles_sinks:textlines,json[file]"
# Run with "SLOTS_PER_EPOCH=8 ./start.sh" to change these # Run with "SLOTS_PER_EPOCH=8 ./start.sh" to change these
DEFS="" DEFS=""
@ -36,7 +36,7 @@ build_beacon_node () {
OUTPUT_BIN=$1; shift OUTPUT_BIN=$1; shift
PARAMS="$CUSTOM_NIMFLAGS $DEFS $@" PARAMS="$CUSTOM_NIMFLAGS $DEFS $@"
echo "Building $OUTPUT_BIN ($PARAMS)" echo "Building $OUTPUT_BIN ($PARAMS)"
$MAKE NIMFLAGS="-o:$OUTPUT_BIN $PARAMS" beacon_node $MAKE NIMFLAGS="-o:$OUTPUT_BIN $PARAMS" LOG_LEVEL="${LOG_LEVEL:-DEBUG}" beacon_node
} }
build_beacon_node $BEACON_NODE_BIN -d:"NETWORK_TYPE=$NETWORK_TYPE" build_beacon_node $BEACON_NODE_BIN -d:"NETWORK_TYPE=$NETWORK_TYPE"
@ -120,11 +120,6 @@ fi
--in="${SIM_ROOT}/beacon-chain-sim-node0-Grafana-dashboard.json" \ --in="${SIM_ROOT}/beacon-chain-sim-node0-Grafana-dashboard.json" \
--out="${SIM_ROOT}/beacon-chain-sim-all-nodes-Grafana-dashboard.json" --out="${SIM_ROOT}/beacon-chain-sim-all-nodes-Grafana-dashboard.json"
# propagate the log level
if [[ -n "${LOG_LEVEL}" ]]; then
export LOG_LEVEL="${LOG_LEVEL}"
fi
# Kill child processes on Ctrl-C by sending SIGTERM to the whole process group, # Kill child processes on Ctrl-C by sending SIGTERM to the whole process group,
# passing the negative PID of this shell instance to the "kill" command. # passing the negative PID of this shell instance to the "kill" command.
# Trap and ignore SIGTERM, so we don't kill this process along with its children. # Trap and ignore SIGTERM, so we don't kill this process along with its children.