diff --git a/oslo/messaging/_drivers/common.py b/oslo/messaging/_drivers/common.py index 2835d72ec..50433682f 100644 --- a/oslo/messaging/_drivers/common.py +++ b/oslo/messaging/_drivers/common.py @@ -33,7 +33,6 @@ from oslo.messaging.openstack.common import jsonutils # FIXME(markmc): remove this _ = lambda s: s -CONF = cfg.CONF LOG = logging.getLogger(__name__) diff --git a/oslo/messaging/_drivers/matchmaker_redis.py b/oslo/messaging/_drivers/matchmaker_redis.py index 94839158d..1ca11ee35 100644 --- a/oslo/messaging/_drivers/matchmaker_redis.py +++ b/oslo/messaging/_drivers/matchmaker_redis.py @@ -18,8 +18,6 @@ The MatchMaker classes should accept a Topic or Fanout exchange key and return keys for direct exchanges, per (approximate) AMQP parlance. """ -import logging - from oslo.config import cfg from oslo.messaging._drivers import matchmaker as mm_common @@ -45,7 +43,6 @@ opt_group = cfg.OptGroup(name='matchmaker_redis', title='Options for Redis-based MatchMaker') CONF.register_group(opt_group) CONF.register_opts(matchmaker_redis_opts, opt_group) -LOG = logging.getLogger(__name__) class RedisExchange(mm_common.Exchange): diff --git a/oslo/messaging/rpc/client.py b/oslo/messaging/rpc/client.py index 727b416af..84692d470 100644 --- a/oslo/messaging/rpc/client.py +++ b/oslo/messaging/rpc/client.py @@ -23,8 +23,6 @@ __all__ = [ 'RemoteError', ] -import logging - from oslo.config import cfg from oslo.messaging._drivers import base as driver_base @@ -38,8 +36,6 @@ _client_opts = [ help='Seconds to wait for a response from a call'), ] -_LOG = logging.getLogger(__name__) - class RemoteError(exceptions.MessagingException): diff --git a/oslo/messaging/rpc/dispatcher.py b/oslo/messaging/rpc/dispatcher.py index 93d230088..e876ee0cc 100644 --- a/oslo/messaging/rpc/dispatcher.py +++ b/oslo/messaging/rpc/dispatcher.py @@ -23,16 +23,12 @@ __all__ = [ 'UnsupportedVersion', ] -import logging - from oslo.messaging import _utils as utils from oslo.messaging import localcontext from oslo.messaging import serializer as msg_serializer from oslo.messaging import server as msg_server from oslo.messaging import target -_LOG = logging.getLogger(__name__) - class RPCDispatcherError(msg_server.MessagingServerError): "A base class for all RPC dispatcher exceptions." diff --git a/oslo/messaging/server.py b/oslo/messaging/server.py index b95f28821..68559a9d3 100644 --- a/oslo/messaging/server.py +++ b/oslo/messaging/server.py @@ -23,17 +23,12 @@ __all__ = [ 'ServerListenError', ] -import logging - from stevedore import driver from oslo.messaging._drivers import base as driver_base from oslo.messaging import exceptions -_LOG = logging.getLogger(__name__) - - class MessagingServerError(exceptions.MessagingException): """Base class for all MessageHandlingServer exceptions."""