Merge "Setup logging in unit tests"
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user