Fix logs loss after switching to oslo_log
After switching to oslo_log api and engine logs haven't been written at all, because they were disabled. This patch take them back. Closes-Bug: 1479432 Change-Id: Ic80dc0a7b5abce0fdc1a919a05c9d613dc70dcc4
This commit is contained in:
parent
1a437ca199
commit
ab7923a7b2
@ -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')
|
||||
|
@ -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())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user