From 66c80327db77a26f8370bc7bd972b8d5abcaf619 Mon Sep 17 00:00:00 2001 From: SW van Heerden Date: Thu, 1 Sep 2022 09:05:36 +0200 Subject: [PATCH] fix: cleanup logs (#4590) Description --- Both wallets submit transactions. This means that for every tx created at least 1 warn!(target: LOG_TARGET, "Validation failed due to unknown inputs" will be created. This reduces the log level for this so that it does not popup by default. --- base_layer/core/src/mempool/mempool_storage.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base_layer/core/src/mempool/mempool_storage.rs b/base_layer/core/src/mempool/mempool_storage.rs index 168d2fe3e7..9fbe293060 100644 --- a/base_layer/core/src/mempool/mempool_storage.rs +++ b/base_layer/core/src/mempool/mempool_storage.rs @@ -96,12 +96,12 @@ impl MempoolStorage { self.unconfirmed_pool.insert(tx, Some(dependent_outputs), &weight)?; Ok(TxStorageResponse::UnconfirmedPool) } else { - warn!(target: LOG_TARGET, "Validation failed due to unknown inputs"); + debug!(target: LOG_TARGET, "Validation failed due to unknown inputs"); Ok(TxStorageResponse::NotStoredOrphan) } }, Err(ValidationError::ContainsSTxO) => { - warn!(target: LOG_TARGET, "Validation failed due to already spent output"); + debug!(target: LOG_TARGET, "Validation failed due to already spent output"); Ok(TxStorageResponse::NotStoredAlreadySpent) }, Err(ValidationError::MaturityError) => {