Trival: Remove unused logging import
In some files, oslo_log.log has been imported but not used. So remove it. Change-Id: I2087abe45320464387bdb3916a62ea7823ffef65
This commit is contained in:
parent
586a503cb7
commit
26f94e1a9c
@ -13,12 +13,9 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
|
|
||||||
from ceilometer.agent import plugin_base as plugin
|
from ceilometer.agent import plugin_base as plugin
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
cfg.CONF.import_group('service_credentials', 'ceilometer.keystone_client')
|
cfg.CONF.import_group('service_credentials', 'ceilometer.keystone_client')
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,15 +19,12 @@ import abc
|
|||||||
import collections
|
import collections
|
||||||
|
|
||||||
from oslo_context import context
|
from oslo_context import context
|
||||||
from oslo_log import log
|
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
import six
|
import six
|
||||||
from stevedore import extension
|
from stevedore import extension
|
||||||
|
|
||||||
from ceilometer import messaging
|
from ceilometer import messaging
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
ExchangeTopics = collections.namedtuple('ExchangeTopics',
|
ExchangeTopics = collections.namedtuple('ExchangeTopics',
|
||||||
['exchange', 'topics'])
|
['exchange', 'topics'])
|
||||||
|
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
"""Implementation of Inspector abstraction for Hyper-V"""
|
"""Implementation of Inspector abstraction for Hyper-V"""
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
from oslo_utils import units
|
from oslo_utils import units
|
||||||
|
|
||||||
from ceilometer.compute.pollsters import util
|
from ceilometer.compute.pollsters import util
|
||||||
@ -23,7 +22,6 @@ from ceilometer.compute.virt import inspector as virt_inspector
|
|||||||
|
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class HyperVInspector(virt_inspector.Inspector):
|
class HyperVInspector(virt_inspector.Inspector):
|
||||||
|
@ -23,13 +23,11 @@ if sys.platform == 'win32':
|
|||||||
import wmi
|
import wmi
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log as logging
|
|
||||||
|
|
||||||
from ceilometer.compute.virt import inspector
|
from ceilometer.compute.virt import inspector
|
||||||
from ceilometer.i18n import _
|
from ceilometer.i18n import _
|
||||||
|
|
||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class HyperVException(inspector.InspectorException):
|
class HyperVException(inspector.InspectorException):
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
import oslo_messaging
|
import oslo_messaging
|
||||||
|
|
||||||
from ceilometer.agent import plugin_base
|
from ceilometer.agent import plugin_base
|
||||||
@ -33,8 +32,6 @@ OPTS = [
|
|||||||
|
|
||||||
cfg.CONF.register_opts(OPTS)
|
cfg.CONF.register_opts(OPTS)
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class NetworkNotificationBase(plugin_base.NotificationBase):
|
class NetworkNotificationBase(plugin_base.NotificationBase):
|
||||||
|
|
||||||
|
@ -13,12 +13,8 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_log import log
|
|
||||||
|
|
||||||
from ceilometer.agent import plugin_base
|
from ceilometer.agent import plugin_base
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
# status map for converting metric status to volume int
|
# status map for converting metric status to volume int
|
||||||
STATUS = {
|
STATUS = {
|
||||||
|
@ -67,8 +67,6 @@ cfg.CONF.register_opt(COLL_OPT, 'collector')
|
|||||||
|
|
||||||
keystone_client.register_keystoneauth_opts(cfg.CONF)
|
keystone_client.register_keystoneauth_opts(cfg.CONF)
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
def prepare_service(argv=None, config_files=None):
|
def prepare_service(argv=None, config_files=None):
|
||||||
oslo_i18n.enable_lazy()
|
oslo_i18n.enable_lazy()
|
||||||
|
@ -25,7 +25,6 @@ import sys
|
|||||||
import bson.code
|
import bson.code
|
||||||
import bson.objectid
|
import bson.objectid
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
from oslo_utils import timeutils
|
from oslo_utils import timeutils
|
||||||
import pymongo
|
import pymongo
|
||||||
import six
|
import six
|
||||||
@ -38,8 +37,6 @@ from ceilometer.storage.mongo import utils as pymongo_utils
|
|||||||
from ceilometer.storage import pymongo_base
|
from ceilometer.storage import pymongo_base
|
||||||
from ceilometer import utils
|
from ceilometer import utils
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
AVAILABLE_CAPABILITIES = {
|
AVAILABLE_CAPABILITIES = {
|
||||||
'resources': {'query': {'simple': True,
|
'resources': {'query': {'simple': True,
|
||||||
|
Loading…
Reference in New Issue
Block a user