From 198887e8903696ea9fcbec0f8a91c2f6ca5a34c7 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Fri, 10 Apr 2015 18:45:35 +0200 Subject: [PATCH] logging: don't set logging format strings for keystone Don't override those format strings since the overridden values are identical to those used by oslo.log by default [1]. logging_exception_prefix is still set since it changes the logging format to use TRACE label for exceptions instead of default ERROR. [1]: https://git.openstack.org/cgit/openstack/oslo.log/tree/oslo_log/_options.py?id=c47a91dbbb586c27d8521b1016bf7901c47b1c90#n110 Closes-Bug: #1433687 Change-Id: Ibd11cd6b0defb6dc709dbd3e718a49fd71cce6b6 --- lib/keystone | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/keystone b/lib/keystone index 9f23e73381..66d4988b02 100644 --- a/lib/keystone +++ b/lib/keystone @@ -281,9 +281,6 @@ function configure_keystone { iniset $KEYSTONE_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL if [ "$KEYSTONE_DEPLOY" == "mod_wsgi" ]; then - iniset $KEYSTONE_CONF DEFAULT logging_context_format_string "%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(request_id)s %(user_identity)s] %(instance)s%(message)s" - iniset $KEYSTONE_CONF DEFAULT logging_default_format_string "%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [-] %(instance)s%(message)s" - iniset $KEYSTONE_CONF DEFAULT logging_debug_format_suffix "%(asctime)s.%(msecs)03d %(funcName)s %(pathname)s:%(lineno)d" iniset $KEYSTONE_CONF DEFAULT logging_exception_prefix "%(asctime)s.%(msecs)03d %(process)d TRACE %(name)s %(instance)s" _config_keystone_apache_wsgi elif [ "$KEYSTONE_DEPLOY" == "uwsgi" ]; then