From 844577e9ccc710b1a9d6cf5affc8a392be94e507 Mon Sep 17 00:00:00 2001
From: licanwei
Date: Mon, 17 Jul 2017 16:15:23 +0800
Subject: [PATCH] remove useless logging
There are many uselees logging in the decision log file:
Arguments dropped when creating context: {u'global_request_id': None}
Change-Id: I7583b2ff6ea1cc15173536ca1cf08cc9f0ecb20d
Closes-Bug: #1704736
---
watcher/common/context.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/watcher/common/context.py b/watcher/common/context.py
index 4984898..3da7b22 100644
--- a/watcher/common/context.py
+++ b/watcher/common/context.py
@@ -63,6 +63,7 @@ class RequestContext(context.RequestContext):
# oslo_context's RequestContext.to_dict() generates this field, we can
# safely ignore this as we don't use it.
kwargs.pop('user_identity', None)
+ kwargs.pop('global_request_id', None)
if kwargs:
LOG.warning('Arguments dropped when creating context: %s',
str(kwargs))