From 8cbfeda0cad4c0b8e32167a44c68eb8dcf20e59a Mon Sep 17 00:00:00 2001 From: Hansie Odendaal <39146854+hansieodendaal@users.noreply.github.com> Date: Mon, 6 May 2024 07:58:38 +0200 Subject: [PATCH] chore: prevent spam logs (#6319) Description --- Prevent spam logs from lmdb_db.rs when many inputs and outputs are present in the blockchain - follow on to #6312. Motivation and Context --- More spam logs existed. How Has This Been Tested? --- System-level testing. What process can a PR reviewer use to test or verify this change? --- See code changes. Breaking Changes --- - [x] None - [ ] Requires data directory on base node to be deleted - [ ] Requires hard fork - [ ] Other - Please specify --- base_layer/core/src/chain_storage/lmdb_db/lmdb_db.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/base_layer/core/src/chain_storage/lmdb_db/lmdb_db.rs b/base_layer/core/src/chain_storage/lmdb_db/lmdb_db.rs index 11983f418a..6f8e4bd159 100644 --- a/base_layer/core/src/chain_storage/lmdb_db/lmdb_db.rs +++ b/base_layer/core/src/chain_storage/lmdb_db/lmdb_db.rs @@ -2063,13 +2063,11 @@ impl BlockchainBackend for LMDBDatabase { } fn fetch_output(&self, output_hash: &HashOutput) -> Result, ChainStorageError> { - debug!(target: LOG_TARGET, "Fetch output: {}", output_hash.to_hex()); let txn = self.read_transaction()?; self.fetch_output_in_txn(&txn, output_hash.as_slice()) } fn fetch_input(&self, output_hash: &HashOutput) -> Result, ChainStorageError> { - debug!(target: LOG_TARGET, "Fetch input: {}", output_hash.to_hex()); let txn = self.read_transaction()?; self.fetch_input_in_txn(&txn, output_hash.as_slice()) }