Skip to content

Commit

Permalink
refactor: improve error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
pbillaut committed Sep 15, 2024
1 parent bd750b9 commit ba74e11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ pub trait Processor {
let mut accounts = HashMap::new();
for transaction in activities {
match transaction {
Err(err) => error!("error parsing account activity {:?}", err),
Err(err) => {
error!(error = ?err, "error parsing account activity record")
}
Ok(transaction) => {
let account = accounts
.entry(transaction.client_id())
Expand Down

0 comments on commit ba74e11

Please sign in to comment.