Let solum conductor/deployer/worker work without logging

This a workaround, we should add the logging setup back.

Change-Id: I83e04ee2bf1f704a9fe23cb69b8845cd54203f03
This commit is contained in:
zhurong 2016-09-16 12:33:44 +00:00
parent f35e792a16
commit 03cc9e68d2
6 changed files with 10 additions and 6 deletions

View File

@ -41,7 +41,8 @@ def main():
LOG.info(_('Starting server in PID %s') % os.getpid())
LOG.debug("Configuration:")
# TODO(zhurong) Add the logging setup back
# TODO(zhurong) Need to fix logging
# logging.setup(cfg.CONF, 'solum')
if host == '0.0.0.0':
LOG.info(_('serving on 0.0.0.0:%(port)s, '

View File

@ -33,7 +33,8 @@ def main():
LOG.info(_('Starting server in PID %s') % os.getpid())
LOG.debug("Configuration:")
logging.setup(cfg.CONF, 'solum')
# TODO(zhurong) Need to fix logging
# logging.setup(cfg.CONF, 'solum')
cfg.CONF.import_opt('topic', 'solum.conductor.config', group='conductor')
cfg.CONF.import_opt('host', 'solum.conductor.config', group='conductor')

View File

@ -34,7 +34,8 @@ def main():
LOG.info(_('Starting server in PID %s') % os.getpid())
LOG.debug("Configuration:")
logging.setup(cfg.CONF, 'solum')
# TODO(zhurong) Need to fix logging
# logging.setup(cfg.CONF, 'solum')
cfg.CONF.import_opt('topic', 'solum.deployer.config', group='deployer')
cfg.CONF.import_opt('host', 'solum.deployer.config', group='deployer')

View File

@ -47,7 +47,8 @@ def main():
LOG.info(_('Starting server in PID %s') % os.getpid())
LOG.debug("Configuration:")
logging.setup(cfg.CONF, 'solum')
# TODO(zhurong) Need to fix logging
# logging.setup(cfg.CONF, 'solum')
cfg.CONF.import_opt('topic', 'solum.worker.config', group='worker')
cfg.CONF.import_opt('host', 'solum.worker.config', group='worker')

View File

@ -21,5 +21,6 @@ from solum import objects
def prepare_service(argv=[]):
cfg.CONF(argv[1:], project='solum')
config.set_config_defaults()
# TODO(zhurong) Add the logging setup back
# TODO(zhurong) Need to fix logging
# logging.setup(cfg.CONF, 'solum')
objects.load()

View File

@ -21,7 +21,6 @@ from solum import version
def parse_args(argv, default_config_files=None):
# TODO(zhurong) Add the logging setup back
cfg.CONF(argv[1:],
project='solum',
version=version.version_string(),