Merge "unify logging setup on zun"
This commit is contained in:
commit
31e2c61a2d
@ -234,12 +234,7 @@ function create_zun_conf {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Format logging
|
# Format logging
|
||||||
if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then
|
setup_logging $ZUN_CONF
|
||||||
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
|
|
||||||
|
|
||||||
# Register SSL certificates if provided
|
# Register SSL certificates if provided
|
||||||
if is_ssl_enabled_service zun; then
|
if is_ssl_enabled_service zun; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user