Skip to content

Commit 57bf3f5

Browse files
committed
chore: debug log transfer fund
1 parent 4b28c82 commit 57bf3f5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • src/bourso_api/src/client/transfer

src/bourso_api/src/client/transfer/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,18 @@ impl BoursoWebClient {
1515
reason: Option<&str>,
1616
) -> Result<()> {
1717
// Minimum amount is 10 EUR
18+
1819
if amount < 10.0 {
1920
bail!(TransferError::AmountTooLow);
2021
}
2122

23+
log::debug!(
24+
"Initiating transfer of {:.2} EUR from account {} to account {}",
25+
amount,
26+
from_account.id,
27+
to_account.id
28+
);
29+
2230
let transfer_from_banking = from_account.kind == AccountKind::Banking;
2331

2432
let from_account = &from_account.id;

0 commit comments

Comments
 (0)