From c88f0797a3db90bc92c69fe14445fd0a723cd021 Mon Sep 17 00:00:00 2001 From: Jonathan Moody <103143855+moodyjon@users.noreply.github.com> Date: Tue, 20 Sep 2022 08:10:38 -0500 Subject: [PATCH] Log f.exception() if present instead of "Stopped". --- lbry/wallet/usage_payment.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lbry/wallet/usage_payment.py b/lbry/wallet/usage_payment.py index 54bac7595..046dcc591 100644 --- a/lbry/wallet/usage_payment.py +++ b/lbry/wallet/usage_payment.py @@ -101,11 +101,13 @@ class WalletServerPayer: def _done_callback(self, f): if f.cancelled(): reason = "Cancelled" + elif f.exception(): + reason = f'Exception: {f.exception()}' elif not self.running: reason = "Stopped" else: - reason = f'Exception: {f.exception()}' - log.info("Stopping wallet server payments. %s", reason) + reason = "" + log.warning("Stopping wallet server payments. %s", reason) async def stop(self): if self.running: