diff --git a/heat/cmd/api.py b/heat/cmd/api.py index b8ea0111cf..ded2b411dc 100644 --- a/heat/cmd/api.py +++ b/heat/cmd/api.py @@ -27,6 +27,7 @@ from oslo_config import cfg import oslo_i18n as i18n from oslo_log import log as logging from oslo_reports import guru_meditation_report as gmr +from oslo_reports import opts as gmr_opts from oslo_service import systemd from heat.common import config @@ -59,7 +60,8 @@ def launch_api(setup_logging=True): LOG.info('Starting Heat REST API on %(host)s:%(port)s', {'host': host, 'port': port}) profiler.setup(CONF.prog, host) - gmr.TextGuruMeditation.setup_autorun(version) + gmr_opts.set_defaults(CONF) + gmr.TextGuruMeditation.setup_autorun(version, conf=CONF) server = wsgi.Server(CONF.prog, CONF.heat_api) server.start(app, default_port=port) return server diff --git a/heat/cmd/api_cfn.py b/heat/cmd/api_cfn.py index bc7cd5b022..bb759131ef 100644 --- a/heat/cmd/api_cfn.py +++ b/heat/cmd/api_cfn.py @@ -29,6 +29,7 @@ from oslo_config import cfg import oslo_i18n as i18n from oslo_log import log as logging from oslo_reports import guru_meditation_report as gmr +from oslo_reports import opts as gmr_opts from oslo_service import systemd from heat.common import config @@ -63,7 +64,8 @@ def launch_cfn_api(setup_logging=True): LOG.info('Starting Heat API on %(host)s:%(port)s', {'host': host, 'port': port}) profiler.setup(CONF.prog, host) - gmr.TextGuruMeditation.setup_autorun(version) + gmr_opts.set_defaults(CONF) + gmr.TextGuruMeditation.setup_autorun(version, conf=CONF) server = wsgi.Server(CONF.prog, CONF.heat_api_cfn) server.start(app, default_port=port) return server diff --git a/heat/cmd/engine.py b/heat/cmd/engine.py index f30081d7e7..9fa9c53cc2 100644 --- a/heat/cmd/engine.py +++ b/heat/cmd/engine.py @@ -30,6 +30,7 @@ from oslo_config import cfg import oslo_i18n as i18n from oslo_log import log as logging from oslo_reports import guru_meditation_report as gmr +from oslo_reports import opts as gmr_opts from oslo_service import service from heat.common import config @@ -69,7 +70,8 @@ def launch_engine(setup_logging=True): from heat.engine import service as engine # noqa profiler.setup(CONF.prog, CONF.host) - gmr.TextGuruMeditation.setup_autorun(version) + gmr_opts.set_defaults(CONF) + gmr.TextGuruMeditation.setup_autorun(version, conf=CONF) srv = engine.EngineService(CONF.host, rpc_api.ENGINE_TOPIC) workers = CONF.num_engine_workers if not workers: