From b6e17a8bc8c799b012f9cd37b6e36473554370ca Mon Sep 17 00:00:00 2001 From: howardlee Date: Thu, 10 Nov 2016 19:22:25 +0800 Subject: [PATCH] Use oslo_log instead of logging 1. the use of the log in the module should be unified. 2. oslo_log wrapped logging. Change-Id: Iac48fcbcd2fc9a7002fed6a328dc74242ad770de --- watcher/common/service.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/watcher/common/service.py b/watcher/common/service.py index 051b900a8..cd47aab40 100644 --- a/watcher/common/service.py +++ b/watcher/common/service.py @@ -15,7 +15,6 @@ # under the License. import datetime -import logging import socket from oslo_concurrency import processutils @@ -332,7 +331,7 @@ def prepare_service(argv=(), conf=cfg.CONF): cfg.set_defaults(_options.log_opts, default_log_levels=_DEFAULT_LOG_LEVELS) log.setup(conf, 'python-watcher') - conf.log_opt_values(LOG, logging.DEBUG) + conf.log_opt_values(LOG, log.DEBUG) objects.register_all() gmr.TextGuruMeditation.register_section(_('Plugins'), opts.show_plugins)