Code Review
/
multicloud
/
framework.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add tox env to generate documentation
[multicloud/framework.git]
/
multivimbroker
/
multivimbroker
/
middleware.py
diff --git
a/multivimbroker/multivimbroker/middleware.py
b/multivimbroker/multivimbroker/middleware.py
index
5b320a3
..
fd063c3
100644
(file)
--- a/
multivimbroker/multivimbroker/middleware.py
+++ b/
multivimbroker/multivimbroker/middleware.py
@@
-46,11
+46,11
@@
class LogContextMiddleware(object):
# Fetch TRANSACTIONID Id and pass to plugin server
ReqeustID = request.META.get("HTTP_X_TRANSACTIONID", None)
if ReqeustID is None:
# Fetch TRANSACTIONID Id and pass to plugin server
ReqeustID = request.META.get("HTTP_X_TRANSACTIONID", None)
if ReqeustID is None:
- ReqeustID =
uuid.uuid3(uuid.NAMESPACE_URL, SERVICE_NAME
)
+ ReqeustID =
str(uuid.uuid3(uuid.NAMESPACE_URL, SERVICE_NAME)
)
request.META["HTTP_X_TRANSACTIONID"] = ReqeustID
MDC.put("requestID", ReqeustID)
# generate the unique id
request.META["HTTP_X_TRANSACTIONID"] = ReqeustID
MDC.put("requestID", ReqeustID)
# generate the unique id
- InovocationID =
uuid.uuid3(uuid.NAMESPACE_DNS, SERVICE_NAME
)
+ InovocationID =
str(uuid.uuid4()
)
MDC.put("invocationID", InovocationID)
MDC.put("serviceName", SERVICE_NAME)
# access ip
MDC.put("invocationID", InovocationID)
MDC.put("serviceName", SERVICE_NAME)
# access ip