summaryrefslogtreecommitdiffstats
path: root/windriver/titanium_cloud/middleware.py
diff options
context:
space:
mode:
Diffstat (limited to 'windriver/titanium_cloud/middleware.py')
-rw-r--r--windriver/titanium_cloud/middleware.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/windriver/titanium_cloud/middleware.py b/windriver/titanium_cloud/middleware.py
index f2618e06..4f19da08 100644
--- a/windriver/titanium_cloud/middleware.py
+++ b/windriver/titanium_cloud/middleware.py
@@ -19,6 +19,7 @@ from onaplogging.mdcContext import MDC
FORWARDED_FOR_FIELDS = ["HTTP_X_FORWARDED_FOR", "HTTP_X_FORWARDED_HOST",
"HTTP_X_FORWARDED_SERVER"]
+
class LogContextMiddleware(object):
# the last IP behind multiple proxies, if no exist proxies
@@ -43,7 +44,6 @@ class LogContextMiddleware(object):
return ip
-
def process_request(self, request):
# fetch propageted Id from other component. if do not fetch id,
# generate one.
@@ -62,4 +62,3 @@ class LogContextMiddleware(object):
MDC.clear()
return response
-