diff --git a/gracedb/api/v1/main/views.py b/gracedb/api/v1/main/views.py index b83b3a9bcaf7e7e0301c4da7ec98ed8ad37e5407..056b2c674e85c12b4761f3f0b165f3c7ed1474c2 100644 --- a/gracedb/api/v1/main/views.py +++ b/gracedb/api/v1/main/views.py @@ -1,6 +1,7 @@ # Needed because our local events and superevents modules (for the API) # shadow the names of the events and superevents apps. from __future__ import absolute_import +import logging from django.conf import settings from django.contrib.auth.models import Group as AuthGroup @@ -20,6 +21,9 @@ from events.view_logic import get_performance_info from superevents.models import Superevent from ..superevents.url_templates import construct_url_templates +# Set up logger +logger = logging.getLogger(__name__) + class TagList(APIView): """Tag List Resource diff --git a/gracedb/core/middleware/proxy.py b/gracedb/core/middleware/proxy.py index c9293ad34a88cd3f9c6f1158b09beb9ce41be785..0f989656a28da60e1037d22a287041a5e2c04e48 100644 --- a/gracedb/core/middleware/proxy.py +++ b/gracedb/core/middleware/proxy.py @@ -1,3 +1,7 @@ +import logging + +# Set up logger +logger = logging.getLogger(__name__) class XForwardedForMiddleware(object):