forked from LBRYCommunity/lbry-sdk
feedback from job
This commit is contained in:
parent
0b0150ad73
commit
cd0a9ba9e8
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,8 @@ def log_response(fn):
|
|||
if future.cancelled():
|
||||
log.warning('Request was unexpectedly cancelled')
|
||||
elif future.exception():
|
||||
log.warning(future.exception_info())
|
||||
exc, traceback = future.exception_info()
|
||||
log.warning('Failed to send an analytics event', exc_info=(type(exc), exc, traceback))
|
||||
else:
|
||||
response = future.result()
|
||||
log.debug('Response (%s): %s', response.status_code, response.content)
|
||||
|
|
Loading…
Reference in a new issue