Skip to content

Commit 1cc2782

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Simplify oslo.log configuration options"
2 parents b86f665 + e826490 commit 1cc2782

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/neutron-legacy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ function _configure_neutron_common {
963963
setup_colorized_logging $NEUTRON_CONF DEFAULT project_id
964964
else
965965
# Show user_name and project_name by default like in nova
966-
iniset $NEUTRON_CONF DEFAULT logging_context_format_string "%(asctime)s.%(msecs)03d %(levelname)s %(name)s [%(request_id)s %(user_name)s %(project_name)s] %(instance)s%(message)s"
966+
iniset $NEUTRON_CONF DEFAULT logging_user_identity_format "%(user_name)s %(project_name)s"
967967
fi
968968

969969
if is_service_enabled tls-proxy; then

lib/nova

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ function create_nova_conf {
546546
setup_colorized_logging $NOVA_CONF DEFAULT
547547
else
548548
# Show user_name and project_name instead of user_id and project_id
549-
iniset $NOVA_CONF DEFAULT logging_context_format_string "%(asctime)s.%(msecs)03d %(levelname)s %(name)s [%(request_id)s %(user_name)s %(project_name)s] %(instance)s%(message)s"
549+
iniset $NOVA_CONF DEFAULT logging_user_identity_format "%(user_name)s %(project_name)s"
550550
fi
551551
if [ "$NOVA_USE_MOD_WSGI" == "True" ]; then
552552
_config_nova_apache_wsgi

0 commit comments

Comments
 (0)