Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix log message formatting #4380

Merged
merged 2 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions engine/src/btc/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,10 @@ impl BtcRpcClient {
match get_bitcoin_network(&client, &endpoint).await {
Ok(network) if network == expected_btc_network => break,
Ok(network) => {
error!(
kylezs marked this conversation as resolved.
Show resolved Hide resolved
"Connected to Bitcoin node but with incorrect network name `{network}`, expected `{expected_btc_network}` on endpoint {}. Please check your CFE
configuration file...",
endpoint.http_endpoint
);
error!("Connected to Bitcoin node but with incorrect network name `{network}`, expected `{expected_btc_network}` on endpoint {}. Please check your CFE configuration file...", endpoint.http_endpoint);
},
Err(e) => error!(
"Failure connecting to Bitcoin node at {} with error: {e}. Please check your CFE
configuration file. Retrying in {:?}...",
"Failure connecting to Bitcoin node at {} with error: {e}. Please check your CFE configuration file. Retrying in {:?}...",
endpoint.http_endpoint,
poll_interval.period()
),
Expand Down
3 changes: 1 addition & 2 deletions engine/src/dot/http_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ impl DotHttpRpcClient {
},
Err(e) => {
error!(
"Failed to connect to Polkadot node at {url} with error: {e}. Please check your CFE
configuration file. Retrying in {:?}...",
"Failed to connect to Polkadot node at {url} with error: {e}. Please check your CFE configuration file. Retrying in {:?}...",
poll_interval.period()
);
},
Expand Down
6 changes: 2 additions & 4 deletions engine/src/eth/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,11 @@ impl EthRpcClient {
Ok(chain_id) if chain_id == expected_chain_id.into() => break client,
Ok(chain_id) => {
tracing::error!(
"Connected to Ethereum node but with incorrect chain_id {chain_id}, expected {expected_chain_id} from {http_endpoint}. Please check your CFE
configuration file...",
"Connected to Ethereum node but with incorrect chain_id {chain_id}, expected {expected_chain_id} from {http_endpoint}. Please check your CFE configuration file...",
);
},
Err(e) => tracing::error!(
"Cannot connect to an Ethereum node at {http_endpoint} with error: {e}. Please check your CFE
configuration file. Retrying in {:?}...",
"Cannot connect to an Ethereum node at {http_endpoint} with error: {e}. Please check your CFE configuration file. Retrying in {:?}...",
poll_interval.period()
),
}
Expand Down