diff --git a/CHANGELOG.md b/CHANGELOG.md index e7b50de93..3d3adc461 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ at anytime. ### Changed * Remove unused upload_allowed option +### Fixed + * add misssing traceback to logging + + ## [0.8.3] - 2017-02-15 ### Fixed * Get lbry files with pending claims diff --git a/lbrynet/analytics/events.py b/lbrynet/analytics/events.py index a15c5c50b..2c4eb498d 100644 --- a/lbrynet/analytics/events.py +++ b/lbrynet/analytics/events.py @@ -67,6 +67,7 @@ class Events(object): 'module': log_record.module, 'lineno': log_record.lineno, 'name': log_record.name, + 'traceback': log_record.exc_text, } return self._event('Error', properties) diff --git a/lbrynet/analytics/logging_handler.py b/lbrynet/analytics/logging_handler.py index 14dbf2e28..e7bdb4ac9 100644 --- a/lbrynet/analytics/logging_handler.py +++ b/lbrynet/analytics/logging_handler.py @@ -8,4 +8,7 @@ class Handler(logging.Handler): logging.Handler.__init__(self, level) def emit(self, record): + # We need to call format to ensure that record.message and + # record.exc_text attributes are populated + self.format(record) self.manager.send_error(record)