From 946279674a457fbb1f9c575b5aa3638d5f0242cb Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 31 Mar 2021 20:24:46 -0300 Subject: [PATCH] stop bloating the logs with checking routine. --- lnbits/core/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lnbits/core/models.py b/lnbits/core/models.py index 9f7b53a32..d0b648c1e 100644 --- a/lnbits/core/models.py +++ b/lnbits/core/models.py @@ -145,13 +145,13 @@ class Payment(NamedTuple): else: status = await WALLET.get_invoice_status(self.checking_id) - print( - f" - checking '{'in' if self.is_in else 'out'}' {self.checking_id}: {status}" - ) - if self.is_out and status.failed: + print(f" - deleting outgoing failed payment {self.checking_id}: {status}") await self.delete() elif not status.pending: + print( + f" - marking '{'in' if self.is_in else 'out'}' {self.checking_id} as not pending anymore: {status}" + ) await self.set_pending(status.pending) async def delete(self) -> None: