Skip to content
Snippets Groups Projects
Commit d9ce5e37 authored by Gunnar Schaefer's avatar Gunnar Schaefer
Browse files

Fix newrelic

parent c9cde70e
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,8 @@ from handlers import grouphandler
from handlers import containerhandler
from handlers import collectionshandler
log = config.log
#regexes used in routing table:
routing_regexes = {
# group id regex
......@@ -131,10 +133,10 @@ def dispatcher(router, request, response):
application = webapp2.WSGIApplication(routes)
application.router.set_dispatcher(dispatcher)
if config.get_item('system', 'new_relic'):
if config.get_item('system', 'newrelic'):
try:
import newrelic.agent, newrelic.api.exceptions
newrelic.agent.initialize(args.new_relic)
newrelic.agent.initialize(config.get_item('system', 'newrelic'))
application = newrelic.agent.WSGIApplicationWrapper(application)
log.info('New Relic detected and loaded. Monitoring enabled.')
except ImportError:
......
......@@ -24,7 +24,7 @@ DEFAULT_CONFIG = {
'log_level': 'debug',
'insecure': False,
'persisted': False,
'new_relic': None,
'newrelic': None,
},
'site': {
'_id': 'local',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment