From a213b74813f83cb4911371941564afb589a4c2eb Mon Sep 17 00:00:00 2001 From: caoyue Date: Thu, 12 May 2016 10:52:23 +0800 Subject: [PATCH] Remove unused import logging Change-Id: Ie5430ded52c216da326ea88d30fca21ff8503142 Closes-bug: #1529541 --- tacker/api/v1/router.py | 3 --- tacker/api/versions.py | 4 ---- tacker/cmd/server.py | 3 --- tacker/common/rpc.py | 4 ---- tacker/db/db_base.py | 3 --- tacker/db/sqlalchemyutils.py | 4 ---- tacker/services/service_base.py | 4 ---- 7 files changed, 25 deletions(-) diff --git a/tacker/api/v1/router.py b/tacker/api/v1/router.py index 0d6a5c94a..944fbc055 100644 --- a/tacker/api/v1/router.py +++ b/tacker/api/v1/router.py @@ -22,11 +22,8 @@ import webob.exc from tacker.api import extensions from tacker.api.v1 import attributes -from tacker.openstack.common import log as logging from tacker import wsgi -LOG = logging.getLogger(__name__) - class Index(wsgi.Application): def __init__(self, resources): diff --git a/tacker/api/versions.py b/tacker/api/versions.py index 8b7926018..0178de884 100644 --- a/tacker/api/versions.py +++ b/tacker/api/versions.py @@ -17,13 +17,9 @@ import webob.dec from tacker.api.views import versions as versions_view from tacker.openstack.common import gettextutils -from tacker.openstack.common import log as logging from tacker import wsgi -LOG = logging.getLogger(__name__) - - class Versions(object): @classmethod diff --git a/tacker/cmd/server.py b/tacker/cmd/server.py index 5b94f4230..c1d731bf7 100644 --- a/tacker/cmd/server.py +++ b/tacker/cmd/server.py @@ -26,13 +26,10 @@ from oslo_config import cfg from tacker.common import config from tacker.openstack.common import gettextutils -from tacker.openstack.common import log as logging from tacker.openstack.common import service as common_service from tacker import service gettextutils.install('tacker', lazy=True) -LOG = logging.getLogger(__name__) - def main(): # the configuration will be read into the cfg.CONF global data structure diff --git a/tacker/common/rpc.py b/tacker/common/rpc.py index 4b7ce9655..a6c462d99 100644 --- a/tacker/common/rpc.py +++ b/tacker/common/rpc.py @@ -19,10 +19,6 @@ from oslo_messaging import serializer as om_serializer from tacker.common import exceptions from tacker import context -from tacker.openstack.common import log as logging - - -LOG = logging.getLogger(__name__) TRANSPORT = None diff --git a/tacker/db/db_base.py b/tacker/db/db_base.py index 3f1f6f992..487739f4f 100644 --- a/tacker/db/db_base.py +++ b/tacker/db/db_base.py @@ -20,9 +20,6 @@ from sqlalchemy import sql from tacker.common import exceptions as n_exc from tacker.db import sqlalchemyutils -from tacker.openstack.common import log as logging - -LOG = logging.getLogger(__name__) class CommonDbMixin(object): diff --git a/tacker/db/sqlalchemyutils.py b/tacker/db/sqlalchemyutils.py index 55fed6af4..13ce6a641 100644 --- a/tacker/db/sqlalchemyutils.py +++ b/tacker/db/sqlalchemyutils.py @@ -18,10 +18,6 @@ import sqlalchemy from sqlalchemy.orm.properties import RelationshipProperty from tacker.common import exceptions as n_exc -from tacker.openstack.common import log as logging - - -LOG = logging.getLogger(__name__) def paginate_query(query, model, limit, sorts, marker_obj=None): diff --git a/tacker/services/service_base.py b/tacker/services/service_base.py index 40ca9649e..8000d22b7 100644 --- a/tacker/services/service_base.py +++ b/tacker/services/service_base.py @@ -18,10 +18,6 @@ import abc import six from tacker.api import extensions -from tacker.openstack.common import log as logging - - -LOG = logging.getLogger(__name__) @six.add_metaclass(abc.ABCMeta)