From 7664c5d2a1c6ec68c8cd97e4c3e18acaaaffd58d Mon Sep 17 00:00:00 2001 From: Sharat Sharma Date: Tue, 2 May 2017 12:30:36 +0530 Subject: [PATCH] Remove unused logging import Change-Id: I6205e7d49277871323f1ff937bd62a14a5e0a788 --- mistral/auth/keystone.py | 3 --- mistral/context.py | 2 -- mistral/rpc/clients.py | 4 ---- mistral/rpc/oslo/oslo_server.py | 4 ---- mistral/service/base.py | 4 ---- 5 files changed, 17 deletions(-) diff --git a/mistral/auth/keystone.py b/mistral/auth/keystone.py index f8737b7a8..64cf331bf 100644 --- a/mistral/auth/keystone.py +++ b/mistral/auth/keystone.py @@ -13,14 +13,11 @@ # limitations under the License. from oslo_config import cfg -from oslo_log import log as logging from mistral import auth from mistral import exceptions as exc -LOG = logging.getLogger(__name__) - CONF = cfg.CONF diff --git a/mistral/context.py b/mistral/context.py index cc93a32be..29c14fb02 100644 --- a/mistral/context.py +++ b/mistral/context.py @@ -16,7 +16,6 @@ import base64 from keystoneclient.v3 import client as keystone_client -import logging from oslo_config import cfg import oslo_messaging as messaging from oslo_serialization import jsonutils @@ -29,7 +28,6 @@ from mistral import exceptions as exc from mistral import serialization from mistral import utils -LOG = logging.getLogger(__name__) CONF = cfg.CONF _CTX_THREAD_LOCAL_NAME = "MISTRAL_APP_CTX_THREAD_LOCAL" ALLOWED_WITHOUT_AUTH = ['/', '/v2/'] diff --git a/mistral/rpc/clients.py b/mistral/rpc/clients.py index fc6a4ed8c..ec6dc7d16 100644 --- a/mistral/rpc/clients.py +++ b/mistral/rpc/clients.py @@ -15,7 +15,6 @@ # limitations under the License. from oslo_config import cfg -from oslo_log import log as logging from osprofiler import profiler from mistral import context as auth_ctx @@ -25,9 +24,6 @@ from mistral.executors import base as exe from mistral.rpc import base -LOG = logging.getLogger(__name__) - - _ENGINE_CLIENT = None _EXECUTOR_CLIENT = None _EVENT_ENGINE_CLIENT = None diff --git a/mistral/rpc/oslo/oslo_server.py b/mistral/rpc/oslo/oslo_server.py index d736b2b7d..a0e17bcdf 100644 --- a/mistral/rpc/oslo/oslo_server.py +++ b/mistral/rpc/oslo/oslo_server.py @@ -12,16 +12,12 @@ # See the License for the specific language governing permissions and # limitations under the License. -from oslo_log import log as logging import oslo_messaging as messaging from mistral import context as ctx from mistral.rpc import base as rpc -LOG = logging.getLogger(__name__) - - class OsloRPCServer(rpc.RPCServer): def __init__(self, conf): super(OsloRPCServer, self).__init__(conf) diff --git a/mistral/service/base.py b/mistral/service/base.py index c1dd203c7..170f4850b 100644 --- a/mistral/service/base.py +++ b/mistral/service/base.py @@ -13,15 +13,11 @@ # limitations under the License. from eventlet import event -from oslo_log import log from oslo_service import service from mistral.service import coordination -LOG = log.getLogger(__name__) - - class MistralService(service.Service): """Base class for Mistral services.