From ca67b20dd0678b8588c16156779f78a941029d90 Mon Sep 17 00:00:00 2001 From: jwinterm Date: Tue, 31 Mar 2026 09:54:23 -0400 Subject: [PATCH] fix: log wallet RPC errors at ERROR level instead of DEBUG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- api/app/reconciler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/app/reconciler.py b/api/app/reconciler.py index 320110f..89b027c 100644 --- a/api/app/reconciler.py +++ b/api/app/reconciler.py @@ -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