Skip to content

Commit 3e05984

Browse files
committed
Improve error logging in CasperClient by changing debug logs to error logs for RPC errors and transaction failures
1 parent 6e30fe0 commit 3e05984

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

odra-casper/rpc-client/src/casper_client/transactions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ impl super::CasperClient {
259259
casper_client::Error::ResponseIsRpcError {
260260
rpc_method, error, ..
261261
} => {
262-
log::debug(format!(
262+
log::error(format!(
263263
"[TX] Received RPC error for method {}: {}.",
264264
rpc_method, error
265265
));
@@ -271,7 +271,7 @@ impl super::CasperClient {
271271
)
272272
}
273273
_ => {
274-
log::debug(format!("Failed to put transaction: {}.", e));
274+
log::error(format!("Failed to put transaction: {}.", e));
275275
ExecutionError(format!("Failed to put transaction: {}", e))
276276
}
277277
})?;

0 commit comments

Comments
 (0)