diff --git a/lbrynet/analytics/api.py b/lbrynet/analytics/api.py index f064a466d..8c703a2d7 100644 --- a/lbrynet/analytics/api.py +++ b/lbrynet/analytics/api.py @@ -16,6 +16,9 @@ def log_response(fn): def _log(future): if future.cancelled(): log.warning('Request was unexpectedly cancelled') + elif future.exception(): + 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)