From 4a88220ffe8d4110ff9320dd4b9be6b318747673 Mon Sep 17 00:00:00 2001 From: Darren Shaw Date: Fri, 4 Dec 2015 20:34:34 -0600 Subject: [PATCH] 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 --- watcher/cmd/api.py | 1 - 1 file changed, 1 deletion(-) diff --git a/watcher/cmd/api.py b/watcher/cmd/api.py index 7e4146be8..5735738d1 100644 --- a/watcher/cmd/api.py +++ b/watcher/cmd/api.py @@ -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)