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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user