mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-03 00:31:50 +00:00
Replace tracing::debug! with debug! same for other levels (#8300)
Just visual clean-up, making logging statements look uniform. There's no reason to use `tracing::debug` instead of `debug`. If we ever need to migrate our logging lib in the future it would make things easier too. Co-Authored-By: dapplion <35266934+dapplion@users.noreply.github.com> Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com> Co-Authored-By: Michael Sproul <michaelsproul@users.noreply.github.com>
This commit is contained in:
@@ -346,7 +346,7 @@ impl<T: BeaconChainTypes> BackFillSync<T> {
|
||||
}
|
||||
}
|
||||
CouplingError::BlobPeerFailure(msg) => {
|
||||
tracing::debug!(?batch_id, msg, "Blob peer failure");
|
||||
debug!(?batch_id, msg, "Blob peer failure");
|
||||
}
|
||||
CouplingError::InternalError(msg) => {
|
||||
error!(?batch_id, msg, "Block components coupling internal error");
|
||||
|
||||
@@ -357,7 +357,7 @@ impl<E: EthSpec> RangeBlockComponentsRequest<E> {
|
||||
// we request the data from.
|
||||
// If there are duplicated indices, its likely a peer sending us the same index multiple times.
|
||||
// However we can still proceed even if there are extra columns, just log an error.
|
||||
tracing::debug!(?block_root, ?index, "Repeated column for block_root");
|
||||
debug!(?block_root, ?index, "Repeated column for block_root");
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@@ -408,7 +408,7 @@ impl<E: EthSpec> RangeBlockComponentsRequest<E> {
|
||||
if !data_columns_by_index.is_empty() {
|
||||
let remaining_indices = data_columns_by_index.keys().collect::<Vec<_>>();
|
||||
// log the error but don't return an error, we can still progress with extra columns.
|
||||
tracing::debug!(
|
||||
debug!(
|
||||
?block_root,
|
||||
?remaining_indices,
|
||||
"Not all columns consumed for block"
|
||||
@@ -428,7 +428,7 @@ impl<E: EthSpec> RangeBlockComponentsRequest<E> {
|
||||
let remaining_roots = data_columns_by_block.keys().collect::<Vec<_>>();
|
||||
// log the error but don't return an error, we can still progress with responses.
|
||||
// this is most likely an internal error with overrequesting or a client bug.
|
||||
tracing::debug!(?remaining_roots, "Not all columns consumed for block");
|
||||
debug!(?remaining_roots, "Not all columns consumed for block");
|
||||
}
|
||||
|
||||
Ok(rpc_blocks)
|
||||
|
||||
@@ -18,7 +18,7 @@ use std::collections::{BTreeMap, HashSet, btree_map::Entry};
|
||||
use std::hash::{Hash, Hasher};
|
||||
use std::marker::PhantomData;
|
||||
use strum::IntoStaticStr;
|
||||
use tracing::{Span, debug, instrument, warn};
|
||||
use tracing::{Span, debug, error, instrument, warn};
|
||||
use types::{ColumnIndex, Epoch, EthSpec, Hash256, Slot};
|
||||
|
||||
/// Blocks are downloaded in batches from peers. This constant specifies how many epochs worth of
|
||||
@@ -942,10 +942,10 @@ impl<T: BeaconChainTypes> SyncingChain<T> {
|
||||
}
|
||||
}
|
||||
CouplingError::BlobPeerFailure(msg) => {
|
||||
tracing::debug!(?batch_id, msg, "Blob peer failure");
|
||||
debug!(?batch_id, msg, "Blob peer failure");
|
||||
}
|
||||
CouplingError::InternalError(msg) => {
|
||||
tracing::error!(?batch_id, msg, "Block components coupling internal error");
|
||||
error!(?batch_id, msg, "Block components coupling internal error");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user