Replace logging with oslo_log

Use oslo_log for all logging options

Co-Authored-By: Corey O'Brien <coreypobrien@gmail.com>
Change-Id: Iaed3a18c868a532f0ce2455e2f4d3c6b06adc88e
This commit is contained in:
Xi Yang 2016-01-09 21:17:13 +08:00 committed by Dimitry Ushakov
parent ff3ec16ca7
commit 7e799929bb
3 changed files with 3 additions and 5 deletions

View File

@ -14,7 +14,6 @@
"""Starter script for the Magnum API service."""
import logging as std_logging
import os
import sys
from wsgiref import simple_server
@ -49,7 +48,7 @@ def main():
LOG.info(_LI('Starting server in PID %s') % os.getpid())
LOG.debug("Configuration:")
cfg.CONF.log_opt_values(LOG, std_logging.DEBUG)
cfg.CONF.log_opt_values(LOG, logging.DEBUG)
if host == '0.0.0.0':
LOG.info(_LI('serving on 0.0.0.0:%(port)s, '

View File

@ -14,7 +14,6 @@
"""Starter script for the Magnum conductor service."""
import logging as std_logging
import os
import sys
@ -47,7 +46,7 @@ def main():
LOG.info(_LI('Starting server in PID %s') % os.getpid())
LOG.debug("Configuration:")
cfg.CONF.log_opt_values(LOG, std_logging.DEBUG)
cfg.CONF.log_opt_values(LOG, logging.DEBUG)
cfg.CONF.import_opt('topic', 'magnum.conductor.config', group='conductor')

View File

@ -16,8 +16,8 @@
"""Policy Engine For magnum."""
import decorator
import logging
from oslo_config import cfg
from oslo_log import log as logging
from oslo_policy import policy
import pecan