diff --git a/murano/cmd/api.py b/murano/cmd/api.py index 1ac41a62..23a41ee6 100644 --- a/murano/cmd/api.py +++ b/murano/cmd/api.py @@ -34,6 +34,7 @@ if os.path.exists(os.path.join(root, 'murano', '__init__.py')): sys.path.insert(0, root) from oslo_config import cfg +from oslo_log import log as logging from oslo_service import service from murano.api.v1 import request_statistics @@ -53,6 +54,7 @@ def main(): request_statistics.init_stats() policy.init() + logging.setup(CONF, 'murano') launcher = service.ServiceLauncher(CONF) app = app_loader.load_paste_app('murano') diff --git a/murano/cmd/engine.py b/murano/cmd/engine.py index ff87c276..6d45dd12 100644 --- a/murano/cmd/engine.py +++ b/murano/cmd/engine.py @@ -33,6 +33,7 @@ root = os.path.join(os.path.abspath(__file__), os.pardir, os.pardir, os.pardir) if os.path.exists(os.path.join(root, 'murano', '__init__.py')): sys.path.insert(0, root) +from oslo_log import log as logging from oslo_service import service from murano.common import config @@ -45,6 +46,7 @@ def main(): try: config.parse_args() + logging.setup(CONF, 'murano') launcher = service.ServiceLauncher(CONF) launcher.launch_service(engine.get_rpc_service())