Switch to common logging.
I only just moved logging from nova to common, so behavior should remain the same. Change-Id: I1d7304ca200f9d024bb7244d25be2f9a670318fb
This commit is contained in:
parent
477e181568
commit
1776e3fc92
@ -20,7 +20,7 @@ from webob import exc
|
||||
from nova.api.openstack import extensions
|
||||
from nova.compute import api as compute_api
|
||||
from nova import exception
|
||||
from nova import log as logging
|
||||
from nova.openstack.common import log as logging
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
authorize = extensions.extension_authorizer('compute', 'aggregates')
|
||||
|
@ -33,7 +33,7 @@ from nova.db.sqlalchemy import models
|
||||
from nova.db.sqlalchemy.session import get_session
|
||||
from nova import exception
|
||||
from nova import flags
|
||||
from nova import log as logging
|
||||
from nova.openstack.common import log as logging
|
||||
from nova.openstack.common import timeutils
|
||||
from nova import utils
|
||||
from sqlalchemy import and_
|
||||
|
@ -23,7 +23,7 @@ from nova.db import migration
|
||||
from nova.db.sqlalchemy.session import get_engine
|
||||
from nova import exception
|
||||
from nova import flags
|
||||
from nova import log as logging
|
||||
from nova.openstack.common import log as logging
|
||||
|
||||
|
||||
import migrate
|
||||
|
@ -32,8 +32,8 @@ import nose.plugins.skip
|
||||
import stubout
|
||||
|
||||
from nova import flags
|
||||
from nova import log as logging
|
||||
from nova.openstack.common import cfg
|
||||
from nova.openstack.common import log as logging
|
||||
from nova.openstack.common import timeutils
|
||||
from nova import service
|
||||
from nova import tests
|
||||
|
@ -39,7 +39,7 @@ import shutil
|
||||
|
||||
from nova.db.sqlalchemy.session import get_engine
|
||||
from nova import flags
|
||||
from nova import log as logging
|
||||
from nova.openstack.common import log as logging
|
||||
|
||||
import eventlet
|
||||
|
||||
@ -49,7 +49,7 @@ eventlet.monkey_patch(os=False)
|
||||
FLAGS = flags.FLAGS
|
||||
FLAGS.use_stderr = False
|
||||
|
||||
logging.setup()
|
||||
logging.setup('nova')
|
||||
|
||||
_DB = None
|
||||
|
||||
|
@ -20,7 +20,7 @@ from webob import exc
|
||||
from nova.api.openstack.compute.contrib import aggregates
|
||||
from nova import context
|
||||
from nova import exception
|
||||
from nova import log as logging
|
||||
from nova.openstack.common import log as logging
|
||||
from nova import test
|
||||
|
||||
|
||||
|
@ -51,10 +51,10 @@ import netaddr
|
||||
|
||||
from nova import exception
|
||||
from nova import flags
|
||||
from nova import log as logging
|
||||
from nova.openstack.common import cfg
|
||||
from nova.openstack.common import excutils
|
||||
from nova.openstack.common import importutils
|
||||
from nova.openstack.common import log as logging
|
||||
from nova.openstack.common import timeutils
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user