From f42730c161d85dbdfa81f626aa1f850ae3667882 Mon Sep 17 00:00:00 2001 From: ZhiQiang Fan Date: Tue, 26 Apr 2016 01:54:50 +0800 Subject: [PATCH] Replace logging constants with oslo.log This patch replaces logging constants with oslo_log. Change-Id: I0bcb52dc51a096d748092b0cb9a34e728ae932e4 --- ironic/api/app.wsgi | 3 +-- ironic/cmd/conductor.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ironic/api/app.wsgi b/ironic/api/app.wsgi index c0ec46b416..5c26248ecd 100644 --- a/ironic/api/app.wsgi +++ b/ironic/api/app.wsgi @@ -16,7 +16,6 @@ Use this file for deploying the API service under Apache2 mod_wsgi. """ -import logging import sys from oslo_config import cfg @@ -35,6 +34,6 @@ service.prepare_service(sys.argv) LOG = log.getLogger(__name__) LOG.debug("Configuration:") -CONF.log_opt_values(LOG, logging.DEBUG) +CONF.log_opt_values(LOG, log.DEBUG) application = app.VersionSelectorApplication() diff --git a/ironic/cmd/conductor.py b/ironic/cmd/conductor.py index e342a191c5..fb5239c607 100644 --- a/ironic/cmd/conductor.py +++ b/ironic/cmd/conductor.py @@ -19,7 +19,6 @@ The Ironic Management Service """ -import logging import sys from oslo_config import cfg @@ -41,7 +40,7 @@ def main(): LOG = log.getLogger(__name__) LOG.debug("Configuration:") - CONF.log_opt_values(LOG, logging.DEBUG) + CONF.log_opt_values(LOG, log.DEBUG) launcher = service.launch(CONF, mgr) launcher.wait()