From f4dec3520fd85a6aa2aec7c72e2f9865fb78dff8 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Wed, 28 Aug 2024 12:23:43 +0800 Subject: [PATCH] Add op-node --log.level --- config/fixturenet-optimism/run-op-node.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/fixturenet-optimism/run-op-node.sh b/config/fixturenet-optimism/run-op-node.sh index bd26752..4c39400 100755 --- a/config/fixturenet-optimism/run-op-node.sh +++ b/config/fixturenet-optimism/run-op-node.sh @@ -9,6 +9,11 @@ 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}" CERC_L1_BEACON="${CERC_L1_BEACON:-${DEFAULT_CERC_L1_BEACON}}" +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) @@ -31,4 +36,5 @@ exec op-node \ --l1.rpckind=$CERC_L1_RPC_KIND \ --l1.beacon=$CERC_L1_BEACON \ --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"