feat: rework logs (#2988)

This commit is contained in:
Bjerg
2023-06-05 19:43:14 +02:00
committed by GitHub
parent 643b3811c2
commit d2c68edf23
24 changed files with 74 additions and 70 deletions

View File

@ -12,7 +12,7 @@ use std::{
collections::HashSet,
hash::{Hash, Hasher},
};
use tracing::{debug, warn};
use tracing::debug;
/// Maximum (reorg) depth we handle when updating the transaction pool: `new.number -
/// last_seen.number`
@ -98,7 +98,7 @@ pub async fn maintain_transaction_pool<Client, V, T, St>(
}
Err(err) => {
let (addresses, err) = *err;
warn!(
debug!(
?err,
"failed to load missing changed accounts at new tip: {:?}",
new_tip.hash

View File

@ -91,7 +91,7 @@ use std::{
time::Instant,
};
use tokio::sync::mpsc;
use tracing::warn;
use tracing::debug;
mod best;
mod events;
@ -343,7 +343,7 @@ where
Ok(()) => true,
Err(err) => {
if matches!(err, mpsc::error::TrySendError::Full(_)) {
warn!(
debug!(
target: "txpool",
"[{:?}] failed to send pending tx; channel full",
ready,
@ -364,7 +364,7 @@ where
Ok(()) => true,
Err(err) => {
if matches!(err, mpsc::error::TrySendError::Full(_)) {
warn!(
debug!(
target: "txpool",
"skipping transaction on full transaction listener",
);