mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +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:
@@ -14,6 +14,7 @@ use ssz::Encode;
|
||||
use std::net::{SocketAddrV4, SocketAddrV6};
|
||||
use std::time::Duration;
|
||||
use std::{marker::PhantomData, path::PathBuf};
|
||||
use tracing::{info, warn};
|
||||
use types::EthSpec;
|
||||
|
||||
/// A set of configuration parameters for the bootnode, established from CLI arguments.
|
||||
@@ -117,7 +118,7 @@ impl<E: EthSpec> BootNodeConfig<E> {
|
||||
let genesis_state_root = genesis_state
|
||||
.canonical_root()
|
||||
.map_err(|e| format!("Error hashing genesis state: {e:?}"))?;
|
||||
tracing::info!(root = ?genesis_state_root, "Genesis state found");
|
||||
info!(root = ?genesis_state_root, "Genesis state found");
|
||||
let enr_fork = spec.enr_fork_id::<E>(
|
||||
types::Slot::from(0u64),
|
||||
genesis_state.genesis_validators_root(),
|
||||
@@ -125,7 +126,7 @@ impl<E: EthSpec> BootNodeConfig<E> {
|
||||
|
||||
Some(enr_fork.as_ssz_bytes())
|
||||
} else {
|
||||
tracing::warn!("No genesis state provided. No Eth2 field added to the ENR");
|
||||
warn!("No genesis state provided. No Eth2 field added to the ENR");
|
||||
None
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user