From c1b72e90543cff4b6268a7dae78c2756a6bbbf9e 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 3413897..12e1954 100755 --- a/config/fixturenet-optimism/run-op-node.sh +++ b/config/fixturenet-optimism/run-op-node.sh @@ -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"