diff --git a/docker-compose.prod.yaml b/docker-compose.prod.yaml index 6d5ff83c4..a6ce64b36 100644 --- a/docker-compose.prod.yaml +++ b/docker-compose.prod.yaml @@ -70,7 +70,7 @@ services: environment: - KAKAROT_RPC_URL=0.0.0.0:3030 - STARKNET_NETWORK=http://starknet:6060 - - RUST_LOG="kakarot_rpc=info" + - RUST_LOG=kakarot_rpc=info - MONGO_CONNECTION_STRING=mongodb://mongo:mongo@mongo:27017 - MONGO_DATABASE_NAME=kakarot-local # These values are unique to Sepolia Testnet diff --git a/docker-compose.staging.yaml b/docker-compose.staging.yaml index b7f0e3586..27470361a 100644 --- a/docker-compose.staging.yaml +++ b/docker-compose.staging.yaml @@ -70,7 +70,7 @@ services: environment: - KAKAROT_RPC_URL=0.0.0.0:3030 - STARKNET_NETWORK=http://starknet:6060 - - RUST_LOG="kakarot_rpc=info" + - RUST_LOG=kakarot_rpc=info - MONGO_CONNECTION_STRING=mongodb://mongo:mongo@mongo:27017 - MONGO_DATABASE_NAME=kakarot-local # These values are unique to Sepolia Testnet diff --git a/docker-compose.yaml b/docker-compose.yaml index ec6a26693..e18f1799b 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -89,7 +89,7 @@ services: environment: - KAKAROT_RPC_URL=0.0.0.0:3030 - STARKNET_NETWORK=http://starknet:5050 - - RUST_LOG="kakarot_rpc=info" + - RUST_LOG=kakarot_rpc=info - MONGO_CONNECTION_STRING=mongodb://mongo:mongo@mongo:27017 - MONGO_DATABASE_NAME=kakarot-local - MAX_FELTS_IN_CALLDATA=30000 diff --git a/src/retry/mod.rs b/src/retry/mod.rs index 05eafb126..2d033c3eb 100644 --- a/src/retry/mod.rs +++ b/src/retry/mod.rs @@ -97,10 +97,8 @@ where /// Processes all current pending transactions by retrying them /// and pruning them if necessary. - #[instrument(skip_all)] async fn process_pending_transactions(&self) -> Result<()> { let pending_transactions = self.pending_transactions().await?; - tracing::info!(count = pending_transactions.len()); for transaction in pending_transactions { if self.should_retry(&transaction).await? { self.retry_transaction(transaction).await?; @@ -149,8 +147,7 @@ where /// not been executed and the number of retries is less than the maximum number of retries. async fn should_retry(&self, transaction: &StoredPendingTransaction) -> Result { let max_retries_reached = transaction.retries + 1 >= get_transaction_max_retries(); - let span = tracing::span!(tracing::Level::INFO, "db::transaction"); - let transaction_executed = self.database.transaction(&transaction.hash).instrument(span).await?.is_some(); + let transaction_executed = self.database.transaction(&transaction.hash).await?.is_some(); Ok(!max_retries_reached && !transaction_executed) } }