From 173bf11a7d81ccc3207aae2442c141a56764e204 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Tue, 7 May 2019 13:17:17 -0400 Subject: [PATCH] Use the common logging setup function in devstack runs To get log formatting like the other openstack projects running in devstack the setup_logging function should be used. This will also give us the "Display level" formatting in the logs via the os-loganalyze packaged used by infra. Needed by: https://review.opendev.org/657652 Change-Id: I5e9bd5a142e45804e8d915b370746a2142243088 --- devstack/lib/watcher | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/devstack/lib/watcher b/devstack/lib/watcher index 33a39167b..fb15e37fe 100644 --- a/devstack/lib/watcher +++ b/devstack/lib/watcher @@ -214,12 +214,7 @@ function create_watcher_conf { fi # Format logging - if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then - setup_colorized_logging $WATCHER_CONF DEFAULT - else - # Show user_name and project_name instead of user_id and project_id - iniset $WATCHER_CONF DEFAULT logging_context_format_string "%(asctime)s.%(msecs)03d %(levelname)s %(name)s [%(request_id)s %(project_domain)s %(user_name)s %(project_name)s] %(instance)s%(message)s" - fi + setup_logging $WATCHER_CONF #config apache files if [[ "$WATCHER_USE_MOD_WSGI" == "True" ]]; then