diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2017-02-15 19:37:13 +0100 |
---|---|---|
committer | Jelle van der Waa <jelle@vdwaa.nl> | 2017-04-17 21:56:52 +0200 |
commit | 2bc7d4cd2d0bb59572bf63f1ad5b2fe7004dd29a (patch) | |
tree | b9e019386576652e1d79f4defd779149d4dddf2f /archweb.wsgi | |
parent | 5e334d78f82cb0dc5f7d3a11db423284016213b4 (diff) | |
download | archweb-2bc7d4cd2d0bb59572bf63f1ad5b2fe7004dd29a.tar.gz archweb-2bc7d4cd2d0bb59572bf63f1ad5b2fe7004dd29a.zip |
remove unused newrelic
New Relic is not used in production.
Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
Diffstat (limited to 'archweb.wsgi')
-rw-r--r-- | archweb.wsgi | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/archweb.wsgi b/archweb.wsgi index a0d969e7..dc9ed29b 100644 --- a/archweb.wsgi +++ b/archweb.wsgi @@ -12,26 +12,5 @@ os.environ['DJANGO_SETTINGS_MODULE'] = "settings" os.chdir(base_path) -using_newrelic = False -try: - key_path = os.path.join(base_path, "newrelic.key") - if os.path.exists(key_path): - with open(key_path) as keyfile: - key = keyfile.read().strip() - os.environ["NEW_RELIC_LICENSE_KEY"] = key - - import newrelic.agent - from newrelic.api.exceptions import ConfigurationError - try: - newrelic.agent.initialize(os.path.join(base_path, "newrelic.ini")) - using_newrelic = True - except ConfigurationError: - pass -except ImportError: - pass - from django.core.wsgi import get_wsgi_application application = get_wsgi_application() - -if using_newrelic: - application = newrelic.agent.wsgi_application()(application) |