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:
Chaozhe.Chen 2015-12-26 13:30:04 +08:00
parent 586a503cb7
commit 26f94e1a9c
8 changed files with 0 additions and 22 deletions

View File

@ -13,12 +13,9 @@
# under the License.
from oslo_config import cfg
from oslo_log import log
from ceilometer.agent import plugin_base as plugin
LOG = log.getLogger(__name__)
cfg.CONF.import_group('service_credentials', 'ceilometer.keystone_client')

View File

@ -19,15 +19,12 @@ import abc
import collections
from oslo_context import context
from oslo_log import log
import oslo_messaging
import six
from stevedore import extension
from ceilometer import messaging
LOG = log.getLogger(__name__)
ExchangeTopics = collections.namedtuple('ExchangeTopics',
['exchange', 'topics'])

View File

@ -14,7 +14,6 @@
"""Implementation of Inspector abstraction for Hyper-V"""
from oslo_config import cfg
from oslo_log import log
from oslo_utils import units
from ceilometer.compute.pollsters import util
@ -23,7 +22,6 @@ from ceilometer.compute.virt import inspector as virt_inspector
CONF = cfg.CONF
LOG = log.getLogger(__name__)
class HyperVInspector(virt_inspector.Inspector):

View File

@ -23,13 +23,11 @@ if sys.platform == 'win32':
import wmi
from oslo_config import cfg
from oslo_log import log as logging
from ceilometer.compute.virt import inspector
from ceilometer.i18n import _
CONF = cfg.CONF
LOG = logging.getLogger(__name__)
class HyperVException(inspector.InspectorException):

View File

@ -18,7 +18,6 @@
"""
from oslo_config import cfg
from oslo_log import log
import oslo_messaging
from ceilometer.agent import plugin_base
@ -33,8 +32,6 @@ OPTS = [
cfg.CONF.register_opts(OPTS)
LOG = log.getLogger(__name__)
class NetworkNotificationBase(plugin_base.NotificationBase):

View File

@ -13,12 +13,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from oslo_log import log
from ceilometer.agent import plugin_base
LOG = log.getLogger(__name__)
# status map for converting metric status to volume int
STATUS = {

View File

@ -67,8 +67,6 @@ cfg.CONF.register_opt(COLL_OPT, 'collector')
keystone_client.register_keystoneauth_opts(cfg.CONF)
LOG = log.getLogger(__name__)
def prepare_service(argv=None, config_files=None):
oslo_i18n.enable_lazy()

View File

@ -25,7 +25,6 @@ import sys
import bson.code
import bson.objectid
from oslo_config import cfg
from oslo_log import log
from oslo_utils import timeutils
import pymongo
import six
@ -38,8 +37,6 @@ from ceilometer.storage.mongo import utils as pymongo_utils
from ceilometer.storage import pymongo_base
from ceilometer import utils
LOG = log.getLogger(__name__)
AVAILABLE_CAPABILITIES = {
'resources': {'query': {'simple': True,