Replace logging constants with oslo.log

This patch replaces logging constants with oslo_log.

Change-Id: I0bcb52dc51a096d748092b0cb9a34e728ae932e4
This commit is contained in:
ZhiQiang Fan 2016-04-26 01:54:50 +08:00
parent 03ab6011ee
commit f42730c161
2 changed files with 2 additions and 4 deletions

View File

@ -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()

View File

@ -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()