Merge "Simplify oslo.log configuration options"
This commit is contained in:
commit
1cc2782d53
@ -963,7 +963,7 @@ function _configure_neutron_common {
|
||||
setup_colorized_logging $NEUTRON_CONF DEFAULT project_id
|
||||
else
|
||||
# Show user_name and project_name by default like in nova
|
||||
iniset $NEUTRON_CONF DEFAULT logging_context_format_string "%(asctime)s.%(msecs)03d %(levelname)s %(name)s [%(request_id)s %(user_name)s %(project_name)s] %(instance)s%(message)s"
|
||||
iniset $NEUTRON_CONF DEFAULT logging_user_identity_format "%(user_name)s %(project_name)s"
|
||||
fi
|
||||
|
||||
if is_service_enabled tls-proxy; then
|
||||
|
2
lib/nova
2
lib/nova
@ -546,7 +546,7 @@ function create_nova_conf {
|
||||
setup_colorized_logging $NOVA_CONF DEFAULT
|
||||
else
|
||||
# Show user_name and project_name instead of user_id and project_id
|
||||
iniset $NOVA_CONF DEFAULT logging_context_format_string "%(asctime)s.%(msecs)03d %(levelname)s %(name)s [%(request_id)s %(user_name)s %(project_name)s] %(instance)s%(message)s"
|
||||
iniset $NOVA_CONF DEFAULT logging_user_identity_format "%(user_name)s %(project_name)s"
|
||||
fi
|
||||
if [ "$NOVA_USE_MOD_WSGI" == "True" ]; then
|
||||
_config_nova_apache_wsgi
|
||||
|
Loading…
x
Reference in New Issue
Block a user