|
...
|
...
|
@@ -264,6 +264,9 @@ function configure_cinder {
|
|
264
|
264
|
# Format logging
|
|
265
|
265
|
if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then
|
|
266
|
266
|
setup_colorized_logging $CINDER_CONF DEFAULT "project_id" "user_id"
|
|
|
267
|
+ else
|
|
|
268
|
+ # Set req-id, project-name and resource in log format
|
|
|
269
|
+ 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"
|
|
267
|
270
|
fi
|
|
268
|
271
|
|
|
269
|
272
|
if [[ -r $CINDER_PLUGINS/$CINDER_DRIVER ]]; then
|