Drop null_logger (#6013)

* Drop null_logger
This commit is contained in:
Lion - dapplion
2024-08-19 11:21:10 +02:00
committed by GitHub
parent 6faa9c678e
commit d957161740
23 changed files with 51 additions and 60 deletions

View File

@@ -685,7 +685,6 @@ fn is_candidate_block(block: &Eth1Block, period_start: u64, spec: &ChainSpec) ->
#[cfg(test)]
mod test {
use super::*;
use environment::null_logger;
use types::{DepositData, MinimalEthSpec, Signature};
type E = MinimalEthSpec;
@@ -743,6 +742,7 @@ mod test {
mod eth1_chain_json_backend {
use super::*;
use eth1::DepositLog;
use logging::test_logger;
use types::{test_utils::generate_deterministic_keypair, MainnetEthSpec};
fn get_eth1_chain() -> Eth1Chain<CachingEth1Backend<E>, E> {
@@ -750,7 +750,7 @@ mod test {
..Eth1Config::default()
};
let log = null_logger().unwrap();
let log = test_logger();
Eth1Chain::new(
CachingEth1Backend::new(eth1_config, log, MainnetEthSpec::default_spec()).unwrap(),
)

View File

@@ -294,7 +294,7 @@ impl BlockShufflingIds {
#[cfg(not(debug_assertions))]
#[cfg(test)]
mod test {
use task_executor::test_utils::null_logger;
use task_executor::test_utils::test_logger;
use types::*;
use crate::test_utils::EphemeralHarnessType;
@@ -315,7 +315,7 @@ mod test {
previous: Some(shuffling_id(current_epoch - 1)),
block_root: Hash256::from_low_u64_le(0),
};
let logger = null_logger().unwrap();
let logger = test_logger();
ShufflingCache::new(TEST_CACHE_SIZE, head_shuffling_ids, logger)
}