Add op-node --log.level

This commit is contained in:
Roy Crihfield 2024-08-28 12:23:43 +08:00
parent f6cc95cd34
commit c1b72e9054

View File

@ -8,6 +8,11 @@ CERC_L1_RPC="${CERC_L1_RPC:-${DEFAULT_CERC_L1_RPC}}"
CERC_L1_RPC_KIND="${CERC_L1_RPC_KIND:-${DEFAULT_CERC_L1_RPC_KIND}}"
CERC_L1_BLOCK_TIME="${CERC_L1_BLOCK_TIME:-$DEFAULT_CERC_L1_BLOCK_TIME}"
log_level=INFO
if [ -n "$CERC_LOG_LEVEL" ]; then
log_level="$CERC_LOG_LEVEL"
fi
# Start op-node
rollup_config=/l2-config/rollup.json
seq_key=$(cat /l2-accounts/accounts.json | jq -r .SeqKey)
@ -30,4 +35,5 @@ exec op-node \
--l1.rpckind=$CERC_L1_RPC_KIND \
--l1.beacon=http://fixturenet-eth-lighthouse-1:8001 \
--l1.http-poll-interval="${CERC_L1_BLOCK_TIME}s" \
--l1.epoch-poll-interval="$((CERC_L1_BLOCK_TIME * 32))s"
--l1.epoch-poll-interval="$((CERC_L1_BLOCK_TIME * 32))s" \
--log.level="$log_level"