From 4ce35c46cc80d07bb9f5ea4f1d4c6961c5f50d3e Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 9 Jan 2013 08:13:39 -0500 Subject: [PATCH] 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 --- lib/nova | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nova b/lib/nova index 21157dc400..a43c091822 100644 --- a/lib/nova +++ b/lib/nova @@ -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" else # 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 if is_service_enabled ceilometer; then add_nova_opt "instance_usage_audit=True"