Replace logging constants with oslo.log
This patch replaces logging constants with oslo_log. Change-Id: I0bcb52dc51a096d748092b0cb9a34e728ae932e4
This commit is contained in:
parent
03ab6011ee
commit
f42730c161
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user