forked from LBRYCommunity/lbry-sdk
Log f.exception() if present instead of "Stopped".
This commit is contained in:
parent
137ebd503d
commit
c88f0797a3
1 changed files with 4 additions and 2 deletions
|
@ -101,11 +101,13 @@ class WalletServerPayer:
|
||||||
def _done_callback(self, f):
|
def _done_callback(self, f):
|
||||||
if f.cancelled():
|
if f.cancelled():
|
||||||
reason = "Cancelled"
|
reason = "Cancelled"
|
||||||
|
elif f.exception():
|
||||||
|
reason = f'Exception: {f.exception()}'
|
||||||
elif not self.running:
|
elif not self.running:
|
||||||
reason = "Stopped"
|
reason = "Stopped"
|
||||||
else:
|
else:
|
||||||
reason = f'Exception: {f.exception()}'
|
reason = ""
|
||||||
log.info("Stopping wallet server payments. %s", reason)
|
log.warning("Stopping wallet server payments. %s", reason)
|
||||||
|
|
||||||
async def stop(self):
|
async def stop(self):
|
||||||
if self.running:
|
if self.running:
|
||||||
|
|
Loading…
Reference in a new issue