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:
parent
f35e792a16
commit
03cc9e68d2
@ -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, '
|
||||
|
@ -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')
|
||||
|
@ -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')
|
||||
|
@ -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')
|
||||
|
@ -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()
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user