fix msec format string

in the else case, which was triggered for devstack gate
the msec format string was incorrect, thus largely scrambling
the usefulness of logs. Fix this to make devstack readable.

Change-Id: I59d0e73932daf27dc1d718dfcf217fe2edf4d491
This commit is contained in:
Sean Dague 2013-01-09 08:13:39 -05:00
parent d9cfdc6ae1
commit 4ce35c46cc

View File

@ -414,7 +414,7 @@ function create_nova_conf() {
add_nova_opt "logging_exception_prefix=%(color)s%(asctime)s.%(msecs)d TRACE %(name)s %(instance)s" add_nova_opt "logging_exception_prefix=%(color)s%(asctime)s.%(msecs)d TRACE %(name)s %(instance)s"
else else
# Show user_name and project_name instead of user_id and project_id # Show user_name and project_name instead of user_id and project_id
add_nova_opt "logging_context_format_string=%(asctime)s.%(msecs) %(levelname)s %(name)s [%(request_id)s %(user_name)s %(project_name)s] %(instance)s%(message)s" add_nova_opt "logging_context_format_string=%(asctime)s.%(msecs)d %(levelname)s %(name)s [%(request_id)s %(user_name)s %(project_name)s] %(instance)s%(message)s"
fi fi
if is_service_enabled ceilometer; then if is_service_enabled ceilometer; then
add_nova_opt "instance_usage_audit=True" add_nova_opt "instance_usage_audit=True"