From ab592931e2a2ddd262753ab99c037bd1d34eca97 Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Fri, 6 Jun 2014 15:12:32 -0700 Subject: [PATCH] Setup color logging for Ironic If enabled, setup colorized logging for Ironic API and Conductor. Change-Id: I8c6d60185dd7907a0f9aa46fd1ae7a92f53406d0 --- lib/ironic | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ironic b/lib/ironic index 389040cd39..171ac934d4 100644 --- a/lib/ironic +++ b/lib/ironic @@ -147,6 +147,11 @@ function configure_ironic { configure_ironic_api fi + # Format logging + if [ "$LOG_COLOR" == "True" ] && [ "$SYSLOG" == "False" ]; then + setup_colorized_logging $IRONIC_CONF_FILE DEFAULT + fi + if [[ "$IRONIC_BAREMETAL_BASIC_OPS" == "True" ]]; then configure_ironic_auxiliary fi