Fix logging when under systemd
Both keystone and neutron didn't yet have systemd awareness for setting up logging (i.e. drop the extra date / time stamps) Change-Id: Ib442c603c9afb679676976c37c2c6122201ae846
This commit is contained in:
parent
8b8441f3be
commit
27f66e9830
@ -267,9 +267,7 @@ function configure_keystone {
|
||||
fi
|
||||
|
||||
# Format logging
|
||||
if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ] && [ "$KEYSTONE_DEPLOY" != "mod_wsgi" ] ; then
|
||||
setup_colorized_logging $KEYSTONE_CONF
|
||||
fi
|
||||
setup_logging $KEYSTONE_CONF
|
||||
|
||||
iniset $KEYSTONE_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL
|
||||
|
||||
|
@ -231,12 +231,7 @@ function configure_neutron_new {
|
||||
fi
|
||||
|
||||
# Format logging
|
||||
if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then
|
||||
setup_colorized_logging $NEUTRON_CONF DEFAULT project_id
|
||||
else
|
||||
# Show user_name and project_name by default
|
||||
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"
|
||||
fi
|
||||
setup_logging $NEUTRON_CONF
|
||||
|
||||
if is_service_enabled tls-proxy; then
|
||||
# Set the service port for a proxy to take the original
|
||||
|
Loading…
Reference in New Issue
Block a user