diff --git a/aodh/api/app.py b/aodh/api/app.py index 8588e32de..c57b4bf69 100644 --- a/aodh/api/app.py +++ b/aodh/api/app.py @@ -86,4 +86,6 @@ def app_factory(global_config, **local_conf): def build_wsgi_app(argv=None): - return load_app(service.prepare_service(argv=argv)) + conf = service.prepare_service(argv=argv) + conf.log_opt_values(LOG, log.DEBUG) + return load_app(conf) diff --git a/aodh/cmd/alarm.py b/aodh/cmd/alarm.py index 3914be13e..00741c1e7 100644 --- a/aodh/cmd/alarm.py +++ b/aodh/cmd/alarm.py @@ -16,15 +16,19 @@ # under the License. import cotyledon +from oslo_log import log from aodh import evaluator as evaluator_svc from aodh import event as event_svc from aodh import notifier as notifier_svc from aodh import service +LOG = log.getLogger(__name__) + def notifier(): conf = service.prepare_service() + conf.log_opt_values(LOG, log.DEBUG) sm = cotyledon.ServiceManager() sm.add(notifier_svc.AlarmNotifierService, workers=conf.notifier.workers, args=(conf,)) @@ -33,6 +37,7 @@ def notifier(): def evaluator(): conf = service.prepare_service() + conf.log_opt_values(LOG, log.DEBUG) sm = cotyledon.ServiceManager() sm.add(evaluator_svc.AlarmEvaluationService, workers=conf.evaluator.workers, args=(conf,)) @@ -41,6 +46,7 @@ def evaluator(): def listener(): conf = service.prepare_service() + conf.log_opt_values(LOG, log.DEBUG) sm = cotyledon.ServiceManager() sm.add(event_svc.EventAlarmEvaluationService, workers=conf.listener.workers, args=(conf,))