Remove useless LOG definitions
This change removes LOG definition: LOG = logging.getLogger(__name__) in modules not needed it. Change-Id: I16daae56d8fa5e86a7bb627e7588d0cb60dc552a
This commit is contained in:
parent
043dd914dc
commit
2019c8530c
@ -15,7 +15,6 @@
|
||||
#
|
||||
# @author: Stéphane Albert
|
||||
#
|
||||
from oslo_log import log as logging
|
||||
import pecan
|
||||
from pecan import rest
|
||||
from wsme import types as wtypes
|
||||
@ -23,8 +22,6 @@ import wsmeext.pecan as wsme_pecan
|
||||
|
||||
from cloudkitty.api.v1 import controllers as v1_api
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class APILink(wtypes.Base):
|
||||
"""API link description.
|
||||
|
@ -15,8 +15,6 @@
|
||||
#
|
||||
# @author: Stéphane Albert
|
||||
#
|
||||
from oslo_log import log as logging
|
||||
|
||||
import warnings
|
||||
|
||||
from cloudkitty.api.v1.controllers import rating as rating_api
|
||||
@ -24,8 +22,6 @@ from cloudkitty.api.v1.controllers.rating import ModulesController # noqa
|
||||
from cloudkitty.api.v1.controllers.rating import ModulesExposer # noqa
|
||||
from cloudkitty.api.v1.controllers.rating import UnconfigurableController # noqa
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def deprecated():
|
||||
warnings.warn(
|
||||
|
@ -16,7 +16,6 @@
|
||||
# @author: Stéphane Albert
|
||||
#
|
||||
from oslo_concurrency import lockutils
|
||||
from oslo_log import log as logging
|
||||
import pecan
|
||||
from pecan import rest
|
||||
from stevedore import extension
|
||||
@ -27,8 +26,6 @@ from cloudkitty.api.v1.datamodels import rating as rating_models
|
||||
from cloudkitty.common import policy
|
||||
from cloudkitty import utils as ck_utils
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
PROCESSORS_NAMESPACE = 'cloudkitty.rating.processors'
|
||||
|
||||
|
||||
|
@ -16,13 +16,11 @@
|
||||
# @author: Stéphane Albert
|
||||
#
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
|
||||
from cloudkitty.common import rpc
|
||||
from cloudkitty import orchestrator
|
||||
from cloudkitty import service
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
CONF = cfg.CONF
|
||||
|
||||
|
@ -17,7 +17,6 @@
|
||||
#
|
||||
from oslo_config import cfg
|
||||
from oslo_db.sqlalchemy import utils
|
||||
from oslo_log import log as logging
|
||||
import sqlalchemy
|
||||
|
||||
from cloudkitty import config # NOQA
|
||||
@ -28,8 +27,6 @@ from cloudkitty.db.sqlalchemy import models
|
||||
|
||||
CONF = cfg.CONF
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def get_backend():
|
||||
return DBAPIManager
|
||||
|
@ -17,14 +17,10 @@
|
||||
#
|
||||
import decimal
|
||||
|
||||
from oslo_log import log as logging
|
||||
|
||||
from cloudkitty import rating
|
||||
from cloudkitty.rating.hash.controllers import root as root_api
|
||||
from cloudkitty.rating.hash.db import api as hash_db_api
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class HashMap(rating.RatingProcessorBase):
|
||||
"""HashMap rating module.
|
||||
|
@ -17,7 +17,6 @@
|
||||
#
|
||||
from oslo_db import exception
|
||||
from oslo_db.sqlalchemy import utils
|
||||
from oslo_log import log as logging
|
||||
from oslo_utils import uuidutils
|
||||
import six
|
||||
import sqlalchemy
|
||||
@ -27,8 +26,6 @@ from cloudkitty.rating.hash.db import api
|
||||
from cloudkitty.rating.hash.db.sqlalchemy import migration
|
||||
from cloudkitty.rating.hash.db.sqlalchemy import models
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def get_backend():
|
||||
return HashMap()
|
||||
|
@ -15,14 +15,10 @@
|
||||
#
|
||||
# @author: Stéphane Albert
|
||||
#
|
||||
from oslo_log import log as logging
|
||||
|
||||
from cloudkitty import rating
|
||||
from cloudkitty.rating.pyscripts.controllers import root as root_api
|
||||
from cloudkitty.rating.pyscripts.db import api as pyscripts_db_api
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class PyScripts(rating.RatingProcessorBase):
|
||||
"""PyScripts rating module.
|
||||
|
@ -17,7 +17,6 @@
|
||||
#
|
||||
from oslo_db import exception
|
||||
from oslo_db.sqlalchemy import utils
|
||||
from oslo_log import log as logging
|
||||
from oslo_utils import uuidutils
|
||||
import six
|
||||
import sqlalchemy
|
||||
@ -27,8 +26,6 @@ from cloudkitty.rating.pyscripts.db import api
|
||||
from cloudkitty.rating.pyscripts.db.sqlalchemy import migration
|
||||
from cloudkitty.rating.pyscripts.db.sqlalchemy import models
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def get_backend():
|
||||
return PyScripts()
|
||||
|
@ -21,7 +21,6 @@ import sys
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
service_opts = [
|
||||
cfg.StrOpt('host',
|
||||
|
Loading…
Reference in New Issue
Block a user