for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from plugin.managers.exception import ExceptionManager
import logging
log = logging.getLogger(__name__)
class ErrorStorage(logging.Handler):
def __init__(self):
super(ErrorStorage, self).__init__()
def emit(self, record):
if record.levelno < logging.ERROR:
return
if record.exc_info:
ExceptionManager.create.from_exc_info(record.exc_info)
self.format(record)
ExceptionManager.create.from_message(record.message)
message
ERROR_STORAGE_HANDLER = ErrorStorage()