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 all commits
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
11 changes: 4 additions & 7 deletions engine/src/btc/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,12 @@ 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
8 changes: 4 additions & 4 deletions engine/src/dot/http_rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ impl DotHttpRpcClient {
},
Err(e) => {
error!(
"Failed to connect to Polkadot node at {url} with error: {e}. Please check your CFE
configuration file. Retrying in {:?}...",
poll_interval.period()
);
"Failed to connect to Polkadot node at {url} with error: {e}. \
Please check your CFE configuration file. Retrying in {:?}...",
poll_interval.period()
);
},
}
};
Expand Down
12 changes: 6 additions & 6 deletions engine/src/eth/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ 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 {:?}...",
poll_interval.period()
),
"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