diff --git a/os_brick/encryptors/base.py b/os_brick/encryptors/base.py index b96e9a4c4..2c90d72da 100644 --- a/os_brick/encryptors/base.py +++ b/os_brick/encryptors/base.py @@ -17,11 +17,8 @@ import abc from os_brick import executor -from oslo_log import log as logging import six -LOG = logging.getLogger(__name__) - @six.add_metaclass(abc.ABCMeta) class VolumeEncryptor(executor.Executor): diff --git a/os_brick/encryptors/nop.py b/os_brick/encryptors/nop.py index 374b3c0e7..02754a915 100644 --- a/os_brick/encryptors/nop.py +++ b/os_brick/encryptors/nop.py @@ -15,10 +15,6 @@ from os_brick.encryptors import base -from oslo_log import log as logging - -LOG = logging.getLogger(__name__) - class NoOpEncryptor(base.VolumeEncryptor): """A VolumeEncryptor that does nothing. diff --git a/os_brick/initiator/linuxsheepdog.py b/os_brick/initiator/linuxsheepdog.py index b874c8b32..542f04d62 100644 --- a/os_brick/initiator/linuxsheepdog.py +++ b/os_brick/initiator/linuxsheepdog.py @@ -17,15 +17,11 @@ Generic SheepDog Connection Utilities. import eventlet import io from oslo_concurrency import processutils -from oslo_log import log as logging from os_brick import exception from os_brick.i18n import _ -LOG = logging.getLogger(__name__) - - class SheepdogVolumeIOWrapper(io.RawIOBase): """File-like object with Sheepdog backend.""" diff --git a/os_brick/tests/base.py b/os_brick/tests/base.py index ce3653dd8..bdcb47cd0 100644 --- a/os_brick/tests/base.py +++ b/os_brick/tests/base.py @@ -21,13 +21,9 @@ import testtools import fixtures import mock -from oslo_log import log as oslo_logging from oslo_utils import strutils -LOG = oslo_logging.getLogger(__name__) - - class TestCase(testtools.TestCase): """Test case base class for all unit tests.""" diff --git a/os_brick/tests/initiator/test_linuxfc.py b/os_brick/tests/initiator/test_linuxfc.py index 5848c2a53..325617b8e 100644 --- a/os_brick/tests/initiator/test_linuxfc.py +++ b/os_brick/tests/initiator/test_linuxfc.py @@ -15,13 +15,10 @@ import os.path import mock -from oslo_log import log as logging from os_brick.initiator import linuxfc from os_brick.tests import base -LOG = logging.getLogger(__name__) - class LinuxFCTestCase(base.TestCase): diff --git a/os_brick/tests/test_utils.py b/os_brick/tests/test_utils.py index 4dd8f8596..fecc9cc47 100644 --- a/os_brick/tests/test_utils.py +++ b/os_brick/tests/test_utils.py @@ -15,16 +15,12 @@ import time import mock -from oslo_log import log as logging from os_brick import exception from os_brick.tests import base from os_brick import utils -LOG = logging.getLogger(__name__) - - class WrongException(exception.BrickException): pass