More tweaks for New Relic in WSGI script
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
d9735f24ec
commit
8986be44be
@ -28,4 +28,9 @@ import django.core.handlers.wsgi
|
||||
application = django.core.handlers.wsgi.WSGIHandler()
|
||||
|
||||
if using_newrelic:
|
||||
application = application = newrelic.agent.wsgi_application()(application)
|
||||
_application = application
|
||||
def application(environ, start_response):
|
||||
os.environ["NEW_RELIC_LICENSE_KEY"] = environ.get("NEW_RELIC_LICENSE_KEY", None)
|
||||
return _application(environ, start_response)
|
||||
|
||||
application = newrelic.agent.wsgi_application()(application)
|
||||
|
Loading…
Reference in New Issue
Block a user