Skip to content

Commit

Permalink
Merge branch 'main' into docs/report
Browse files Browse the repository at this point in the history
  • Loading branch information
pbillaut authored Sep 15, 2024
2 parents ff70d39 + c7d7d4d commit 9686708
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::account::Account;
use crate::account_activity::AccountActivity;
use std::collections::HashMap;
use std::error::Error;
use tracing::warn;
use tracing::debug;

// TODO: This fn is public to be able to benchmark it. This should better be handled with a
// bench-feature instead.
Expand All @@ -15,14 +15,14 @@ where
for account_activity in activities {
match account_activity {
Err(err) => {
warn!(error = ?err, "error parsing account activity record")
debug!(error = ?err, "error parsing account activity record")
}
Ok(activity) => {
let account = accounts
.entry(activity.client_id())
.or_insert_with(|| Account::new(activity.client_id()));
if let Err(err) = account.transaction(activity) {
warn!(
debug!(
activity = %activity,
transaction.id = %activity.transaction_id(),
client.id = %activity.client_id(),
Expand Down

0 comments on commit 9686708

Please sign in to comment.