Merge "neutron should log user_name and project_name by default like in nova"

This commit is contained in:
Jenkins 2015-01-21 05:41:20 +00:00 committed by Gerrit Code Review
commit d961416f87

View File

@ -837,6 +837,9 @@ function _configure_neutron_common {
# Format logging # Format logging
if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then
setup_colorized_logging $NEUTRON_CONF DEFAULT project_id 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"
fi fi
if is_service_enabled tls-proxy; then if is_service_enabled tls-proxy; then