From 666ab97e016b339fe3dab93ba87f71b0edf74871 Mon Sep 17 00:00:00 2001 From: ChenZheng Date: Mon, 28 Dec 2015 12:40:02 +0800 Subject: [PATCH] Trival: Remove unused logging import In some files In some files, oslo_log.log has been imported but not used. Need to remove it. Change-Id: Ib70dbbb2469067c16cf8422e1af572a914a214ec --- zaqar/storage/mongodb/catalogue.py | 4 ---- zaqar/storage/mongodb/claims.py | 4 ---- zaqar/storage/mongodb/driver.py | 4 ---- zaqar/storage/redis/claims.py | 3 --- zaqar/storage/redis/driver.py | 2 -- zaqar/storage/redis/queues.py | 3 --- zaqar/storage/sqlalchemy/driver.py | 5 ----- 7 files changed, 25 deletions(-) diff --git a/zaqar/storage/mongodb/catalogue.py b/zaqar/storage/mongodb/catalogue.py index 8a8196006..33867878a 100644 --- a/zaqar/storage/mongodb/catalogue.py +++ b/zaqar/storage/mongodb/catalogue.py @@ -25,15 +25,11 @@ Serves to construct an association between a project + queue -> pool. } """ -from oslo_log import log as logging - from zaqar.storage import base from zaqar.storage import errors from zaqar.storage.mongodb import utils -LOG = logging.getLogger(__name__) - PRIMARY_KEY = utils.PROJ_QUEUE_KEY CATALOGUE_INDEX = [ diff --git a/zaqar/storage/mongodb/claims.py b/zaqar/storage/mongodb/claims.py index 9b506a261..32e423ca7 100644 --- a/zaqar/storage/mongodb/claims.py +++ b/zaqar/storage/mongodb/claims.py @@ -24,7 +24,6 @@ Field Mappings: import datetime from bson import objectid -from oslo_log import log as logging from oslo_utils import timeutils from zaqar import storage @@ -32,9 +31,6 @@ from zaqar.storage import errors from zaqar.storage.mongodb import utils -LOG = logging.getLogger(__name__) - - class ClaimController(storage.Claim): """Implements claim resource operations using MongoDB. diff --git a/zaqar/storage/mongodb/driver.py b/zaqar/storage/mongodb/driver.py index 70461faf9..853a3eb3e 100644 --- a/zaqar/storage/mongodb/driver.py +++ b/zaqar/storage/mongodb/driver.py @@ -17,7 +17,6 @@ import ssl -from oslo_log import log as logging import pymongo import pymongo.errors @@ -28,9 +27,6 @@ from zaqar.storage.mongodb import controllers from zaqar.storage.mongodb import options -LOG = logging.getLogger(__name__) - - def _connection(conf): # NOTE(flaper87): remove possible zaqar specific # schemes like: mongodb.fifo diff --git a/zaqar/storage/redis/claims.py b/zaqar/storage/redis/claims.py index 86454b3f1..830158873 100644 --- a/zaqar/storage/redis/claims.py +++ b/zaqar/storage/redis/claims.py @@ -15,7 +15,6 @@ import functools import msgpack -from oslo_log import log as logging from oslo_utils import timeutils from oslo_utils import uuidutils @@ -26,8 +25,6 @@ from zaqar.storage.redis import messages from zaqar.storage.redis import scripting from zaqar.storage.redis import utils -LOG = logging.getLogger(__name__) - QUEUE_CLAIMS_SUFFIX = 'claims' CLAIM_MESSAGES_SUFFIX = 'messages' diff --git a/zaqar/storage/redis/driver.py b/zaqar/storage/redis/driver.py index e0fac6e36..aa8724849 100644 --- a/zaqar/storage/redis/driver.py +++ b/zaqar/storage/redis/driver.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from oslo_log import log as logging import redis import redis.sentinel from six.moves import urllib @@ -24,7 +23,6 @@ from zaqar import storage from zaqar.storage.redis import controllers from zaqar.storage.redis import options -LOG = logging.getLogger(__name__) REDIS_DEFAULT_PORT = 6379 SENTINEL_DEFAULT_PORT = 26379 DEFAULT_SOCKET_TIMEOUT = 0.1 diff --git a/zaqar/storage/redis/queues.py b/zaqar/storage/redis/queues.py index ffa8da12c..d44adf2c1 100644 --- a/zaqar/storage/redis/queues.py +++ b/zaqar/storage/redis/queues.py @@ -15,7 +15,6 @@ import functools import msgpack -from oslo_log import log as logging from oslo_utils import timeutils import redis @@ -24,8 +23,6 @@ from zaqar import storage from zaqar.storage import errors from zaqar.storage.redis import utils -LOG = logging.getLogger(__name__) - QUEUES_SET_STORE_NAME = 'queues_set' MESSAGE_IDS_SUFFIX = 'messages' diff --git a/zaqar/storage/sqlalchemy/driver.py b/zaqar/storage/sqlalchemy/driver.py index 1f1c784df..41dd83b59 100644 --- a/zaqar/storage/sqlalchemy/driver.py +++ b/zaqar/storage/sqlalchemy/driver.py @@ -13,8 +13,6 @@ # License for the specific language governing permissions and limitations under # the License. -import logging - import sqlalchemy as sa from zaqar.common import decorators @@ -24,9 +22,6 @@ from zaqar.storage.sqlalchemy import options from zaqar.storage.sqlalchemy import tables -LOG = logging.getLogger(__name__) - - class ControlDriver(storage.ControlDriverBase): def __init__(self, conf, cache):