forked from LBRYCommunity/lbry-sdk
Merge pull request #484 from lbryio/add-traceback-to-reported-errors
record traceback in error event
This commit is contained in:
commit
eb039201e8
3 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue