Commit 510dd90c by Omar Khan

Remove newrelic logging handler

It was introduced back in 2012, and is not used in the default
configuration.
parent 5e9577bf
import newrelic.agent
import logging
class NewRelicHandler(logging.Handler):
def emit(self, record):
if record.exc_info is not None:
params = record.__dict__
params['log_message'] = record.getMessage()
newrelic.agent.record_exception(
*record.exc_info,
params=params
)
...@@ -87,11 +87,6 @@ def get_logger_config(log_dir, ...@@ -87,11 +87,6 @@ def get_logger_config(log_dir,
'filters': ['require_debug_false'], 'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler' 'class': 'django.utils.log.AdminEmailHandler'
}, },
'newrelic': {
'level': 'ERROR',
'class': 'lms.lib.newrelic_logging.NewRelicHandler',
'formatter': 'raw',
}
}, },
'loggers': { 'loggers': {
'tracking': { 'tracking': {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment