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:
jwinterm
2026-03-31 09:54:23 -04:00
parent a15569c535
commit ca67b20dd0
+3 -3
View File
@@ -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