From 701276a800f97af501de3f4cf9163e48fbcfb562 Mon Sep 17 00:00:00 2001 From: Louis Taylor Date: Wed, 11 Feb 2015 19:34:09 +0000 Subject: [PATCH] Enable colorized logging for glance Extensive QA has found this makes glance 100% more fabulous. Change-Id: I1cf94096d6bd5033ef0f9e3ed2a77108677581f0 --- lib/glance | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/glance b/lib/glance index 5bd0b8cdf1..eb1df2e8ae 100755 --- a/lib/glance +++ b/lib/glance @@ -183,6 +183,12 @@ function configure_glance { iniset $GLANCE_API_CONF DEFAULT registry_client_protocol https fi + # Format logging + if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then + setup_colorized_logging $GLANCE_API_CONF DEFAULT "project_id" "user_id" + setup_colorized_logging $GLANCE_REGISTRY_CONF DEFAULT "project_id" "user_id" + fi + cp -p $GLANCE_DIR/etc/glance-registry-paste.ini $GLANCE_REGISTRY_PASTE_INI cp -p $GLANCE_DIR/etc/glance-api-paste.ini $GLANCE_API_PASTE_INI