Merge "Setup logging in unit tests"

This commit is contained in:
Jenkins
2017-04-14 09:38:14 +00:00
committed by Gerrit Code Review

View File

@@ -25,11 +25,16 @@
# TODO(deva): move eventlet imports to ironic.__init__ once we move to PBR
import eventlet
from oslo_config import cfg
from oslo_log import log
from ironic import objects
eventlet.monkey_patch(os=False)
log.register_options(cfg.CONF)
log.setup(cfg.CONF, 'ironic')
# NOTE(comstud): Make sure we have all of the objects loaded. We do this
# at module import time, because we may be using mock decorators in our
# tests that run at import time.