Dump loaded options during start up
... so that operators can review effective values (except for secret information such as password) from the log. Change-Id: Ic094df537b5f7333be38c249cdec59a10d2e2660
This commit is contained in:
parent
38495d63cf
commit
ac365555f4
@ -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)
|
||||
|
@ -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,))
|
||||
|
Loading…
Reference in New Issue
Block a user