From b35c2b1c4d7e050f650ead0d5483e75c7e60ebc4 Mon Sep 17 00:00:00 2001 From: Anh Tran Date: Thu, 16 Feb 2017 10:20:41 +0700 Subject: [PATCH] Remove unused logging import Change-Id: I087e7a221ea784678e8a90d2666e2ccc28831ecb --- bilean/api/openstack/v1/resources.py | 4 ---- bilean/api/openstack/v1/users.py | 4 ---- bilean/cmd/engine.py | 2 -- bilean/cmd/notification.py | 2 -- bilean/cmd/scheduler.py | 2 -- bilean/common/config.py | 1 - bilean/common/schema.py | 3 --- bilean/drivers/openstack/cinder_v2.py | 4 ---- bilean/drivers/openstack/keystone_v3.py | 2 -- bilean/drivers/openstack/nova_v2.py | 3 --- bilean/engine/consumption.py | 4 ---- bilean/engine/parser.py | 4 ---- bilean/notifier.py | 3 --- bilean/plugins/base.py | 2 -- 14 files changed, 40 deletions(-) diff --git a/bilean/api/openstack/v1/resources.py b/bilean/api/openstack/v1/resources.py index 1e40372..63af3e0 100644 --- a/bilean/api/openstack/v1/resources.py +++ b/bilean/api/openstack/v1/resources.py @@ -23,10 +23,6 @@ from bilean.common import utils from bilean.common import wsgi from bilean.rpc import client as rpc_client -from oslo_log import log as logging - -LOG = logging.getLogger(__name__) - class ResourceController(object): """WSGI controller for Resources in Bilean v1 API diff --git a/bilean/api/openstack/v1/users.py b/bilean/api/openstack/v1/users.py index 83cd368..ee5d436 100644 --- a/bilean/api/openstack/v1/users.py +++ b/bilean/api/openstack/v1/users.py @@ -23,10 +23,6 @@ from bilean.common import utils from bilean.common import wsgi from bilean.rpc import client as rpc_client -from oslo_log import log as logging - -LOG = logging.getLogger(__name__) - class UserController(object): """WSGI controller for Users in Bilean v1 API diff --git a/bilean/cmd/engine.py b/bilean/cmd/engine.py index 918b76e..2f10b33 100644 --- a/bilean/cmd/engine.py +++ b/bilean/cmd/engine.py @@ -29,8 +29,6 @@ from oslo_service import service _lazy.enable_lazy() -LOG = logging.getLogger('bilean.engine') - def main(): logging.register_options(cfg.CONF) diff --git a/bilean/cmd/notification.py b/bilean/cmd/notification.py index a22c4d2..2bebde4 100644 --- a/bilean/cmd/notification.py +++ b/bilean/cmd/notification.py @@ -24,8 +24,6 @@ from bilean.common import messaging _lazy.enable_lazy() -LOG = logging.getLogger('bilean.notification') - def main(): logging.register_options(cfg.CONF) diff --git a/bilean/cmd/scheduler.py b/bilean/cmd/scheduler.py index 729ccb7..6b72603 100644 --- a/bilean/cmd/scheduler.py +++ b/bilean/cmd/scheduler.py @@ -29,8 +29,6 @@ from oslo_service import service _lazy.enable_lazy() -LOG = logging.getLogger('bilean.scheduler') - def main(): logging.register_options(cfg.CONF) diff --git a/bilean/common/config.py b/bilean/common/config.py index 5cca774..51496d3 100644 --- a/bilean/common/config.py +++ b/bilean/common/config.py @@ -24,7 +24,6 @@ from bilean.common.i18n import _ from bilean.common import wsgi -LOG = logging.getLogger(__name__) paste_deploy_group = cfg.OptGroup('paste_deploy') paste_deploy_opts = [ cfg.StrOpt('api_paste_config', default="api-paste.ini", diff --git a/bilean/common/schema.py b/bilean/common/schema.py index 18ad816..76276b0 100644 --- a/bilean/common/schema.py +++ b/bilean/common/schema.py @@ -14,14 +14,11 @@ import collections import numbers import six -from oslo_log import log as logging from oslo_utils import strutils from bilean.common import exception from bilean.common.i18n import _ -LOG = logging.getLogger(__name__) - class AnyIndexDict(collections.Mapping): '''Convenience schema for a list.''' diff --git a/bilean/drivers/openstack/cinder_v2.py b/bilean/drivers/openstack/cinder_v2.py index cd9432b..a5c2a68 100644 --- a/bilean/drivers/openstack/cinder_v2.py +++ b/bilean/drivers/openstack/cinder_v2.py @@ -10,13 +10,9 @@ # License for the specific language governing permissions and limitations # under the License. -from oslo_log import log - from bilean.drivers import base from bilean.drivers.openstack import sdk -LOG = log.getLogger(__name__) - class CinderClient(base.DriverBase): '''Cinder V2 driver.''' diff --git a/bilean/drivers/openstack/keystone_v3.py b/bilean/drivers/openstack/keystone_v3.py index 135c6eb..3398f2c 100644 --- a/bilean/drivers/openstack/keystone_v3.py +++ b/bilean/drivers/openstack/keystone_v3.py @@ -11,12 +11,10 @@ # under the License. from oslo_config import cfg -from oslo_log import log from bilean.drivers import base from bilean.drivers.openstack import sdk -LOG = log.getLogger(__name__) CONF = cfg.CONF diff --git a/bilean/drivers/openstack/nova_v2.py b/bilean/drivers/openstack/nova_v2.py index 89d4388..49ff62e 100644 --- a/bilean/drivers/openstack/nova_v2.py +++ b/bilean/drivers/openstack/nova_v2.py @@ -11,13 +11,10 @@ # under the License. from oslo_config import cfg -from oslo_log import log from bilean.drivers import base from bilean.drivers.openstack import sdk -LOG = log.getLogger(__name__) - class NovaClient(base.DriverBase): '''Nova V2 driver.''' diff --git a/bilean/engine/consumption.py b/bilean/engine/consumption.py index bc2d3fe..4bf309d 100644 --- a/bilean/engine/consumption.py +++ b/bilean/engine/consumption.py @@ -15,10 +15,6 @@ from bilean.common import exception from bilean.common import utils from bilean.db import api as db_api -from oslo_log import log as logging - -LOG = logging.getLogger(__name__) - class Consumption(object): """Class reference to consumption record.""" diff --git a/bilean/engine/parser.py b/bilean/engine/parser.py index 1482a0f..a4fc37d 100644 --- a/bilean/engine/parser.py +++ b/bilean/engine/parser.py @@ -17,12 +17,8 @@ import six from six.moves import urllib import yaml -from oslo_log import log as logging - from bilean.common.i18n import _ -LOG = logging.getLogger(__name__) - # Try LibYAML if available if hasattr(yaml, 'CSafeLoader'): Loader = yaml.CSafeLoader diff --git a/bilean/notifier.py b/bilean/notifier.py index a395f1f..545fce7 100644 --- a/bilean/notifier.py +++ b/bilean/notifier.py @@ -12,7 +12,6 @@ # under the License. from oslo_config import cfg -from oslo_log import log as logging import oslo_messaging notifier_opts = [ @@ -23,8 +22,6 @@ notifier_opts = [ CONF = cfg.CONF CONF.register_opts(notifier_opts) -LOG = logging.getLogger(__name__) - def get_transport(): return oslo_messaging.get_transport(CONF) diff --git a/bilean/plugins/base.py b/bilean/plugins/base.py index 686e849..73b956d 100644 --- a/bilean/plugins/base.py +++ b/bilean/plugins/base.py @@ -13,7 +13,6 @@ import time from oslo_config import cfg -from oslo_log import log as logging from oslo_utils import timeutils from bilean.common import exception @@ -25,7 +24,6 @@ from bilean.engine import consumption as consumption_mod from bilean.engine import environment wallclock = time.time -LOG = logging.getLogger(__name__) resource_opts = [