mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-29 13:22:37 +02:00
stop bloating the logs with checking routine.
This commit is contained in:
@@ -145,13 +145,13 @@ class Payment(NamedTuple):
|
|||||||
else:
|
else:
|
||||||
status = await WALLET.get_invoice_status(self.checking_id)
|
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:
|
if self.is_out and status.failed:
|
||||||
|
print(f" - deleting outgoing failed payment {self.checking_id}: {status}")
|
||||||
await self.delete()
|
await self.delete()
|
||||||
elif not status.pending:
|
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)
|
await self.set_pending(status.pending)
|
||||||
|
|
||||||
async def delete(self) -> None:
|
async def delete(self) -> None:
|
||||||
|
Reference in New Issue
Block a user