Remove unused logging import

Change-Id: I087e7a221ea784678e8a90d2666e2ccc28831ecb
This commit is contained in:
Anh Tran 2017-02-16 10:20:41 +07:00
parent df84bb1d95
commit b35c2b1c4d
14 changed files with 0 additions and 40 deletions

View File

@ -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

View File

@ -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

View File

@ -29,8 +29,6 @@ from oslo_service import service
_lazy.enable_lazy()
LOG = logging.getLogger('bilean.engine')
def main():
logging.register_options(cfg.CONF)

View File

@ -24,8 +24,6 @@ from bilean.common import messaging
_lazy.enable_lazy()
LOG = logging.getLogger('bilean.notification')
def main():
logging.register_options(cfg.CONF)

View File

@ -29,8 +29,6 @@ from oslo_service import service
_lazy.enable_lazy()
LOG = logging.getLogger('bilean.scheduler')
def main():
logging.register_options(cfg.CONF)

View File

@ -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",

View File

@ -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.'''

View File

@ -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.'''

View File

@ -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

View File

@ -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.'''

View File

@ -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."""

View File

@ -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

View File

@ -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)

View File

@ -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 = [