Files
edx-platform/lib/util/errors.py

8 lines
178 B
Python

import newrelic.agent
import sys
def record_exception(logger, msg, params={}, ignore_errors=[]):
logger.exception(msg)
newrelic.agent.record_exception(*sys.exc_info())