Remove unused logging import and LOG global var

In some modules the global LOG is not used any more. And the import
of logging is not used. This patch removes the unused logging import
and LOG vars.

Change-Id: I794ee719d76f04e70154cf67f726152fbb1ba15a
This commit is contained in:
zhangguoqing
2016-04-06 10:34:39 +08:00
parent 96683a6133
commit a52d92be87
13 changed files with 0 additions and 39 deletions

View File

@@ -17,12 +17,8 @@
from __future__ import unicode_literals
from oslo_log import log
from watcher.common.loader import default
LOG = log.getLogger(__name__)
class DefaultActionLoader(default.DefaultLoader):
def __init__(self):

View File

@@ -17,12 +17,8 @@
from __future__ import unicode_literals
from oslo_log import log
from watcher.common.loader import default
LOG = log.getLogger(__name__)
class DefaultWorkFlowEngineLoader(default.DefaultLoader):
def __init__(self):

View File

@@ -15,14 +15,12 @@
# limitations under the License.
import eventlet
from oslo_log import log
import oslo_messaging as messaging
from watcher.common.messaging.utils import observable
eventlet.monkey_patch()
LOG = log.getLogger(__name__)
class NotificationHandler(observable.Observable):

View File

@@ -21,7 +21,6 @@ from oslo_config import cfg
from oslo_db import exception as db_exc
from oslo_db.sqlalchemy import session as db_session
from oslo_db.sqlalchemy import utils as db_utils
from oslo_log import log
from sqlalchemy.orm import exc
from watcher import _i18n
@@ -35,7 +34,6 @@ from watcher.objects import audit as audit_objects
from watcher.objects import utils as objutils
CONF = cfg.CONF
LOG = log.getLogger(__name__)
_ = _i18n._
_FACADE = None

View File

@@ -38,13 +38,11 @@ See :doc:`../architecture` for more details on this component.
"""
from oslo_config import cfg
from oslo_log import log
from watcher.common.messaging import messaging_core
from watcher.decision_engine.messaging import audit_endpoint
LOG = log.getLogger(__name__)
CONF = cfg.CONF
WATCHER_DECISION_ENGINE_OPTS = [

View File

@@ -13,16 +13,12 @@
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from oslo_log import log
from watcher._i18n import _
from watcher.common import exception
from watcher.decision_engine.model import hypervisor
from watcher.decision_engine.model import mapping
from watcher.decision_engine.model import vm
LOG = log.getLogger(__name__)
class ModelRoot(object):
def __init__(self):

View File

@@ -17,12 +17,8 @@
from __future__ import unicode_literals
from oslo_log import log
from watcher.common.loader.default import DefaultLoader
LOG = log.getLogger(__name__)
class DefaultPlannerLoader(DefaultLoader):
def __init__(self):

View File

@@ -18,7 +18,6 @@
#
from oslo_config import cfg
from oslo_log import log
from watcher.common import exception
from watcher.common.messaging import messaging_core
@@ -28,7 +27,6 @@ from watcher.decision_engine.manager import decision_engine_opt_group
from watcher.decision_engine.manager import WATCHER_DECISION_ENGINE_OPTS
LOG = log.getLogger(__name__)
CONF = cfg.CONF
CONF.register_group(decision_engine_opt_group)

View File

@@ -16,14 +16,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from oslo_log import log
from watcher.applier.actions import base as baction
from watcher.common import exception
from watcher.decision_engine.solution import base
LOG = log.getLogger(__name__)
class DefaultSolution(base.BaseSolution):
def __init__(self):

View File

@@ -19,12 +19,9 @@
from __future__ import unicode_literals
from oslo_log import log
from watcher.common.loader import default
LOG = log.getLogger(__name__)
class DefaultStrategyLoader(default.DefaultLoader):
def __init__(self):

View File

@@ -37,16 +37,12 @@ which are dynamically loaded by Watcher at launch time.
"""
import abc
from oslo_log import log
import six
from watcher.common import clients
from watcher.decision_engine.solution import default
from watcher.decision_engine.strategy.common import level
LOG = log.getLogger(__name__)
@six.add_metaclass(abc.ABCMeta)
class BaseStrategy(object):

View File

@@ -19,13 +19,11 @@
from oslo_config import cfg
from oslo_log import log
from watcher.common import ceilometer_helper
from watcher.metrics_engine.cluster_history import base
CONF = cfg.CONF
LOG = log.getLogger(__name__)
class CeilometerClusterHistory(base.BaseClusterHistory):

View File

@@ -18,13 +18,11 @@
#
from oslo_config import cfg
from oslo_log import log
from watcher.common import nova_helper
from watcher.metrics_engine.cluster_model_collector import nova as cnova
LOG = log.getLogger(__name__)
CONF = cfg.CONF