Don't create LOG if not logging

This cleans up a few cases where a LOG instance was being created, but
no logging was actually happening in the file.

Change-Id: I0d5dbf5e8e781c2674dde1904535e03bb2385abc
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-09-17 16:27:16 -05:00
parent 5bf5726891
commit 3d56b6dfd6
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8
3 changed files with 0 additions and 8 deletions

View File

@ -13,7 +13,6 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log as logging
from oslo_utils import strutils
import webob
@ -29,8 +28,6 @@ from cinder import quota
from cinder import quota_utils
from cinder import utils
LOG = logging.getLogger(__name__)
QUOTAS = quota.QUOTAS
GROUP_QUOTAS = quota.GROUP_QUOTAS
NON_QUOTA_KEYS = quota.NON_QUOTA_KEYS

View File

@ -14,15 +14,12 @@
import abc
from oslo_config import cfg
from oslo_log import log as logging
from oslo_utils import importutils
import six
from cinder import exception
from cinder.i18n import _
LOG = logging.getLogger(__name__)
CONF = cfg.CONF
# NOTE(ZhengMa): The order of the option is improtant, accelerators

View File

@ -20,7 +20,6 @@ import json
import socket
from oslo_config import cfg
from oslo_log import log
from cinder import exception
from cinder.i18n import _
@ -30,7 +29,6 @@ from cinder.volume import driver
from cinder.volume.drivers.netapp.dataontap.client import client_cmode
from cinder.volume.drivers.netapp import options as na_opts
LOG = log.getLogger(__name__)
CONF = cfg.CONF