Browse code

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

Sean Dague authored on 2013/01/09 22:13:39
Showing 1 changed files
... ...
@@ -414,7 +414,7 @@ function create_nova_conf() {
414 414
         add_nova_opt "logging_exception_prefix=%(color)s%(asctime)s.%(msecs)d TRACE %(name)s %(instance)s"
415 415
     else
416 416
         # Show user_name and project_name instead of user_id and project_id
417
-        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"
417
+        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"
418 418
     fi
419 419
     if is_service_enabled ceilometer; then
420 420
         add_nova_opt "instance_usage_audit=True"