stop bloating the logs with checking routine.

This commit is contained in:
fiatjaf
2021-03-31 20:24:46 -03:00
parent 11679a4fa7
commit 946279674a

View File

@ -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: