Replace logging with oslo_log

Use oslo_log for all logging options

Co-Authored-By: Corey O'Brien <coreypobrien@gmail.com>
Change-Id: Iaed3a18c868a532f0ce2455e2f4d3c6b06adc88e
changes/46/265546/4
Xi Yang 7 years ago committed by Dimitry Ushakov
parent ff3ec16ca7
commit 7e799929bb
  1. 3
      magnum/cmd/api.py
  2. 3
      magnum/cmd/conductor.py
  3. 2
      magnum/common/policy.py

@ -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, '

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

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

Loading…
Cancel
Save