mirror of
https://github.com/Such-Software/xmrcheckout.git
synced 2026-10-17 05:51:34 +02:00
fix: log wallet RPC errors at ERROR level instead of DEBUG
When get_transfers_for_address() fails in the reconciler, the actual exception was logged at DEBUG level. With the default LOG_LEVEL=INFO, these errors are invisible — invoices silently fail to reconcile with no indication in logs. Combines the two log calls into one at ERROR level so the exception message is always visible in production.
This commit is contained in:
@@ -116,11 +116,11 @@ def _reconcile_invoices(service: MoneroWalletService) -> None:
|
||||
address=invoice.address,
|
||||
)
|
||||
except Exception as exc:
|
||||
logger.warning(
|
||||
"Skipping invoice reconcile due to wallet RPC error",
|
||||
logger.error(
|
||||
"Skipping invoice reconcile due to wallet RPC error: %s",
|
||||
exc,
|
||||
extra={"invoice_id": str(invoice.id), "user_id": str(user.id)},
|
||||
)
|
||||
logger.debug("Wallet RPC error: %s", exc)
|
||||
continue
|
||||
total_atomic = 0
|
||||
max_confirmations = 0
|
||||
|
||||
Reference in New Issue
Block a user