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):
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue