From 4790d64a608118f48a2eb62620996a1e36efd5a2 Mon Sep 17 00:00:00 2001 From: liangke Date: Thu, 3 May 2018 13:23:26 +0800 Subject: Random Inovocation ID Change-Id: I14485e2fa4ed616dcc8028aec4d22312116540d4 Issue-ID: MULTICLOUD-220 Signed-off-by: liangke --- multivimbroker/multivimbroker/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'multivimbroker') diff --git a/multivimbroker/multivimbroker/middleware.py b/multivimbroker/multivimbroker/middleware.py index 8bb7357..fd063c3 100644 --- a/multivimbroker/multivimbroker/middleware.py +++ b/multivimbroker/multivimbroker/middleware.py @@ -50,7 +50,7 @@ class LogContextMiddleware(object): request.META["HTTP_X_TRANSACTIONID"] = ReqeustID MDC.put("requestID", ReqeustID) # generate the unique id - InovocationID = str(uuid.uuid3(uuid.NAMESPACE_DNS, SERVICE_NAME)) + InovocationID = str(uuid.uuid4()) MDC.put("invocationID", InovocationID) MDC.put("serviceName", SERVICE_NAME) # access ip -- cgit 1.2.3-korg