Skip to content

Commit d07134a

Browse files
committed
chore: improve logging
1 parent c711d5b commit d07134a

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

crates/tap-agent/src/agent/sender_accounts_manager.rs

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,13 +1231,26 @@ async fn handle_notification(
12311231
};
12321232
let allocation_id = new_receipt_notification.allocation_id();
12331233
let allocation_str = allocation_id.to_hex();
1234-
tracing::info!(
1235-
"Processing receipt notification: sender={}, allocation_id={}, sender_type={:?}, value={}",
1236-
sender_address,
1237-
allocation_id,
1238-
sender_type,
1239-
new_receipt_notification.value()
1240-
);
1234+
match allocation_id {
1235+
AllocationId::Legacy(_) => {
1236+
tracing::info!(
1237+
"Processing receipt notification: sender={}, allocation_id={}, sender_type={:?}, value={}",
1238+
sender_address,
1239+
allocation_id,
1240+
sender_type,
1241+
new_receipt_notification.value()
1242+
);
1243+
}
1244+
AllocationId::Horizon(collection_id) => {
1245+
tracing::info!(
1246+
"Processing receipt notification: sender={}, collection_id={}, sender_type={:?}, value={}",
1247+
sender_address,
1248+
collection_id,
1249+
sender_type,
1250+
new_receipt_notification.value()
1251+
);
1252+
}
1253+
}
12411254
// For actor lookup, use the address format that matches how actors are created
12421255
let allocation_for_actor_name = match &allocation_id {
12431256
AllocationId::Legacy(id) => id.to_string(),

0 commit comments

Comments
 (0)