mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: rework logs (#2988)
This commit is contained in:
@ -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
|
||||
|
||||
@ -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",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user