diff options
| author | Lianhao Lu <lianhao.lu@intel.com> | 2012-11-13 16:11:42 +0800 |
|---|---|---|
| committer | Lianhao Lu <lianhao.lu@intel.com> | 2012-11-14 11:42:36 +0800 |
| commit | efba20239c1253c3e6ce4a68eed97585a74b8a46 (patch) | |
| tree | 19b62d49ae3fbaea96634e3d99155b1ed9827b49 /openstack | |
| parent | d6fa3847cc64f6815641cdb549dd100e1aab6043 (diff) | |
| download | oslo-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.py | 2 |
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', |
