Skip to content

Commit

Permalink
fix: cleanup logs (#4590)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SWvheerden committed Sep 1, 2022
1 parent 842c933 commit 66c8032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base_layer/core/src/mempool/mempool_storage.rs
Expand Up @@ -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) => {
Expand Down

0 comments on commit 66c8032

Please sign in to comment.