summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
authorLianhao Lu <lianhao.lu@intel.com>2012-11-13 16:11:42 +0800
committerLianhao Lu <lianhao.lu@intel.com>2012-11-14 11:42:36 +0800
commitefba20239c1253c3e6ce4a68eed97585a74b8a46 (patch)
tree19b62d49ae3fbaea96634e3d99155b1ed9827b49 /openstack
parentd6fa3847cc64f6815641cdb549dd100e1aab6043 (diff)
downloadoslo-efba20239c1253c3e6ce4a68eed97585a74b8a46.tar.gz
oslo-efba20239c1253c3e6ce4a68eed97585a74b8a46.tar.xz
oslo-efba20239c1253c3e6ce4a68eed97585a74b8a46.zip
Adjust the logging_context_format_string.
This patch fixed the bug 1078190. The 'logging_context_format_string' option uses some undefined fields in log.ContextAdapter() and context.RequestContext(), which would result a 'KeyError' exception when calling logging functions. Change-Id: I41ee8a9ac89079c30e970477730c8615fb4636b7
Diffstat (limited to 'openstack')
-rw-r--r--openstack/common/log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/log.py b/openstack/common/log.py
index 6cb3dfc..319c6e2 100644
--- a/openstack/common/log.py
+++ b/openstack/common/log.py
@@ -50,7 +50,7 @@ from openstack.common import notifier
log_opts = [
cfg.StrOpt('logging_context_format_string',
default='%(asctime)s %(levelname)s %(name)s [%(request_id)s '
- '%(user_id)s %(project_id)s] %(instance)s'
+ '%(user)s %(tenant)s] %(instance)s'
'%(message)s',
help='format string to use for log messages with context'),
cfg.StrOpt('logging_default_format_string',