Skip to content

Commit

Permalink
feat: replace all log with tracing in grandine module
Browse files Browse the repository at this point in the history
  • Loading branch information
Karrenbelt committed Sep 4, 2024
1 parent 558b6ae commit b14b17b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion grandine/src/grandine_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use fork_choice_store::{StoreConfig, DEFAULT_CACHE_LOCK_TIMEOUT_MILLIS};
use grandine_version::{APPLICATION_NAME, APPLICATION_NAME_AND_VERSION, APPLICATION_VERSION};
use http_api::HttpApiConfig;
use itertools::{EitherOrBoth, Itertools as _};
use log::warn;
use tracing::warn;
use metrics::{MetricsServerConfig, MetricsServiceConfig};
use p2p::{Enr, Multiaddr, NetworkConfig};
use prometheus_metrics::{Metrics, METRICS};
Expand Down
8 changes: 4 additions & 4 deletions grandine/src/grandine_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ use eth1_api::AuthOptions;
use features::Feature;
use http_api::HttpApiConfig;
use itertools::Itertools as _;
use log::info;
use p2p::NetworkConfig;
use reqwest::Url;
use runtime::{MetricsConfig, StorageConfig};
use signer::Web3SignerConfig;
use tracing::info;
use types::{
config::Config as ChainConfig,
phase0::primitives::{ExecutionAddress, ExecutionBlockNumber, Slot, H256},
Expand Down Expand Up @@ -110,7 +110,7 @@ impl GrandineConfig {
storage_config.eth1_db_size.to_string_as(true),
);

info!("Eth1 RPC URLs: [{}]", eth1_rpc_urls.iter().format(", "));
info!("Eth1 RPC URLs: {:?}", eth1_rpc_urls);
info!("graffiti: {graffiti:?}");
info!("HTTP API address: {}", http_api_config.address);

Expand Down Expand Up @@ -151,8 +151,8 @@ impl GrandineConfig {

if !web3signer_config.urls.is_empty() {
info!(
"using Web3Signer API to sign validator messages (API URLs: [{}])",
web3signer_config.urls.iter().format(", "),
"using Web3Signer API to sign validator messages (API URLs: {:?})",
web3signer_config.urls,
);
}

Expand Down
2 changes: 1 addition & 1 deletion grandine/src/predefined_network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use anyhow::{bail, Context as _, Result};
use deposit_tree::DepositTree;
use fork_choice_control::checkpoint_sync;
use genesis::AnchorCheckpointProvider;
use log::info;
use tracing::info;
use p2p::{Enr, NetworkConfig};
use reqwest::{Client, Url};
use ssz::SszRead as _;
Expand Down
2 changes: 1 addition & 1 deletion grandine/src/validators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::{collections::HashMap, path::PathBuf, sync::Arc};
use anyhow::{Error, Result};
use bls::{PublicKeyBytes, SecretKey};
use eip_2335::Keystore;
use log::{info, warn};
use tracing::{info, warn};
use rayon::iter::{IntoParallelIterator as _, ParallelIterator as _};
use signer::KeyOrigin;
use std_ext::ArcExt;
Expand Down

0 comments on commit b14b17b

Please sign in to comment.