unify logging setup on zun
This leverages the devstack's setup_logging function which builds consistent logging format. Devstack's patch: https://review.openstack.org/#/c/301802/ Change-Id: I2462abe2d315495e008231d8b0721af315a48f5d
This commit is contained in:
parent
3ec5806222
commit
e51985e717
@ -238,12 +238,7 @@ function create_zun_conf {
|
||||
fi
|
||||
|
||||
# Format logging
|
||||
if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then
|
||||
setup_colorized_logging $ZUN_CONF DEFAULT
|
||||
else
|
||||
# Show user_name and project_name instead of user_id and project_id
|
||||
iniset $ZUN_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 $ZUN_CONF
|
||||
|
||||
# Register SSL certificates if provided
|
||||
if is_ssl_enabled_service zun; then
|
||||
|
Loading…
Reference in New Issue
Block a user