mirror of https://github.com/scrapy/scrapy.git
Use method to get traceback of failures in failure_to_exc_info
This commit is contained in:
parent
6dccb3a9b3
commit
e7574a809e
|
|
@ -18,7 +18,7 @@ logger = logging.getLogger(__name__)
|
|||
def failure_to_exc_info(failure):
|
||||
"""Extract exc_info from Failure instances"""
|
||||
if isinstance(failure, Failure):
|
||||
return (failure.type, failure.value, failure.tb)
|
||||
return (failure.type, failure.value, failure.getTracebackObject())
|
||||
|
||||
|
||||
class TopLevelFormatter(logging.Filter):
|
||||
|
|
|
|||
Loading…
Reference in New Issue