Remove duplicate setup in Watcher API main()

main() duplicates code for oslo_log setup, which is first
called within prepare_services(). This patches removes
the duplication call in main()

Change-Id: I712d3733218c18b2eb02d4bf26e54b29ef72a988
Closes-Bug: #1522781
This commit is contained in:
Darren Shaw 2015-12-04 20:34:34 -06:00
parent 7710b1670e
commit 4a88220ffe
1 changed files with 0 additions and 1 deletions

View File

@ -42,7 +42,6 @@ def main():
host, port = cfg.CONF.api.host, cfg.CONF.api.port
srv = simple_server.make_server(host, port, app)
logging.setup(CONF, 'watcher')
LOG.info(_('Starting server in PID %s') % os.getpid())
LOG.debug("Watcher configuration:")
cfg.CONF.log_opt_values(LOG, std_logging.DEBUG)