Setup color logging for Ironic
If enabled, setup colorized logging for Ironic API and Conductor.
Change-Id: I8c6d60185dd7907a0f9aa46fd1ae7a92f53406d0
diff --git a/lib/ironic b/lib/ironic
index 389040c..171ac93 100644
--- a/lib/ironic
+++ b/lib/ironic
@@ -147,6 +147,11 @@
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