summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--windriver/titanium_cloud/middleware.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/windriver/titanium_cloud/middleware.py b/windriver/titanium_cloud/middleware.py
index cae9e9b1..f2618e06 100644
--- a/windriver/titanium_cloud/middleware.py
+++ b/windriver/titanium_cloud/middleware.py
@@ -49,10 +49,10 @@ class LogContextMiddleware(object):
# generate one.
ReqeustID = request.META.get("HTTP_X_TRANSACTIONID", None)
if ReqeustID is None:
- ReqeustID = uuid.uuid3(uuid.NAMESPACE_URL, settings.MULTIVIM_VERSION)
+ ReqeustID = str(uuid.uuid3(uuid.NAMESPACE_URL, settings.MULTIVIM_VERSION))
MDC.put("requestID", ReqeustID)
# generate the reqeust id
- InvocationID = uuid.uuid3(uuid.NAMESPACE_DNS, settings.MULTIVIM_VERSION)
+ InvocationID = str(uuid.uuid4())
MDC.put("invocationID", InvocationID)
MDC.put("serviceName", settings.MULTIVIM_VERSION)
MDC.put("serviceIP", self._getLastIp(request))