feedback from job

This commit is contained in:
Jack 2016-11-22 15:18:01 -05:00
parent 0b0150ad73
commit cd0a9ba9e8

View file

@ -17,7 +17,8 @@ def log_response(fn):
if future.cancelled(): if future.cancelled():
log.warning('Request was unexpectedly cancelled') log.warning('Request was unexpectedly cancelled')
elif future.exception(): 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: else:
response = future.result() response = future.result()
log.debug('Response (%s): %s', response.status_code, response.content) log.debug('Response (%s): %s', response.status_code, response.content)