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:
parent
d9cfdc6ae1
commit
4ce35c46cc
2
lib/nova
2
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 [01;35m%(instance)s[00m"
|
add_nova_opt "logging_exception_prefix=%(color)s%(asctime)s.%(msecs)d TRACE %(name)s [01;35m%(instance)s[00m"
|
||||||
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user