[Trivial] replace logging with oslo.log
oslo.log provides more features and is a fundamental recommended library to use. Also the library oslo.log provides compatibility for log levels, logging namespace is not needed. Change-Id: I37439260d33024aee46c81f9b1db3130403d220c
This commit is contained in:
parent
95011c5876
commit
a8747d181d
@ -16,12 +16,12 @@
|
||||
"""
|
||||
Filter support
|
||||
"""
|
||||
import logging
|
||||
from oslo_log import log
|
||||
|
||||
from manila.i18n import _LI
|
||||
from manila.scheduler import base_handler
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
LOG = log.getLogger(__name__)
|
||||
|
||||
|
||||
class BaseFilter(object):
|
||||
|
@ -13,12 +13,12 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import logging
|
||||
from oslo_log import log
|
||||
|
||||
from manila.scheduler.filters import base_host
|
||||
from manila.scheduler.filters import extra_specs_ops
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
LOG = log.getLogger(__name__)
|
||||
|
||||
|
||||
class CapabilitiesFilter(base_host.BaseHostFilter):
|
||||
|
@ -13,11 +13,11 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import logging
|
||||
from oslo_log import log
|
||||
|
||||
from manila.scheduler.filters import base_host
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
LOG = log.getLogger(__name__)
|
||||
|
||||
|
||||
class IgnoreAttemptedHostsFilter(base_host.BaseHostFilter):
|
||||
|
@ -17,7 +17,6 @@
|
||||
import datetime
|
||||
import hashlib
|
||||
import inspect
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
|
||||
@ -199,7 +198,7 @@ class HPE3ParShareDriver(driver.ShareDriver):
|
||||
|
||||
try:
|
||||
# Log the source SHA for support. Only do this with DEBUG.
|
||||
if LOG.isEnabledFor(logging.DEBUG):
|
||||
if LOG.isEnabledFor(log.DEBUG):
|
||||
LOG.debug('HPE3ParShareDriver SHA1: %s',
|
||||
self.sha1_hash(HPE3ParShareDriver))
|
||||
LOG.debug('HPE3ParMediator SHA1: %s',
|
||||
|
Loading…
x
Reference in New Issue
Block a user