From 0b671ad58d31dc3c3704a35a9ef0c17af0834e72 Mon Sep 17 00:00:00 2001 From: Daneyon Hansen Date: Wed, 1 Apr 2015 18:38:46 +0000 Subject: Adds Initial Logging Support Previously, logging was hard coded into the nova and neutron containers. This patch creates two common params for logging: DEBUG_LOGGING VERBOSE_LOGGING and sets default values of verbose=true and debug=false. This patch implements logging for Nova and Neutron. Add'l OS service config scripts and images will need to be updated to use the logging params. Change-Id: I03d48005d5b4789aa3c519879a20d963ef1cbaa3 --- docker/nova-controller/nova-scheduler/start.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'docker/nova-controller/nova-scheduler') diff --git a/docker/nova-controller/nova-scheduler/start.sh b/docker/nova-controller/nova-scheduler/start.sh index 087d477fe..5be5e4e80 100755 --- a/docker/nova-controller/nova-scheduler/start.sh +++ b/docker/nova-controller/nova-scheduler/start.sh @@ -4,7 +4,12 @@ set -e . /opt/kolla/config-nova.sh -check_required_vars NOVA_DB_NAME +check_required_vars NOVA_DB_NAME NOVA_SCHEDULER_LOG_FILE fail_unless_db $NOVA_DB_NAME +cfg=/etc/nova/nova.conf + +# configure logging +crudini --set $cfg DEFAULT log_file "${NOVA_SCHEDULER_LOG_FILE}" + exec /usr/bin/nova-scheduler -- cgit v1.2.3