Standardize log format

This patch adjusts a log format of tacker processes to devstack
standard format.

One of merit is that selecting logs by the log level becomes
available in the zuul output.

Change-Id: I3cd23b1b3ee9f93a15a05faed8ee20116f5c4c43
This commit is contained in:
Itsuro Oda
2024-02-20 05:36:25 +00:00
parent c056e248b2
commit 50db569f0d

View File

@@ -252,12 +252,7 @@ function configure_tacker {
_create_tacker_data_dirs
# Format logging
if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then
setup_colorized_logging $TACKER_CONF DEFAULT project_id
else
# Show user_name and project_name by default like in nova
iniset $TACKER_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 $TACKER_CONF
# server
TACKER_API_PASTE_FILE=$TACKER_CONF_DIR/api-paste.ini