Merge "Add logging config to cinder.conf"

This commit is contained in:
Jenkins 2015-04-20 14:28:32 +00:00 committed by Gerrit Code Review
commit db20059b76

View File

@ -264,6 +264,9 @@ function configure_cinder {
# Format logging # Format logging
if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then
setup_colorized_logging $CINDER_CONF DEFAULT "project_id" "user_id" setup_colorized_logging $CINDER_CONF DEFAULT "project_id" "user_id"
else
# Set req-id, project-name and resource in log format
iniset $CINDER_CONF DEFAULT logging_context_format_string "%(asctime)s.%(msecs)03d %(levelname)s %(name)s [%(request_id)s %(project_name)s] %(resource)s%(message)s"
fi fi
if [[ -r $CINDER_PLUGINS/$CINDER_DRIVER ]]; then if [[ -r $CINDER_PLUGINS/$CINDER_DRIVER ]]; then