Merge "Replace deprecated LOG.warn with warning"

This commit is contained in:
Jenkins
2016-01-10 00:48:28 +00:00
committed by Gerrit Code Review
2 changed files with 5 additions and 5 deletions

View File

@@ -256,9 +256,9 @@ def discover_version(client, requested_version):
valid_version = requested_version
if server_start_version.is_null() and server_end_version.is_null():
LOG.warn("Server does not support microversions. Changing server "
"version to %(min_version)s" %
{"min_version": DEPRECATED_VERSION})
LOG.warning("Server does not support microversions. Changing server "
"version to %(min_version)s." %
{"min_version": DEPRECATED_VERSION})
valid_version = APIVersion(DEPRECATED_VERSION)
else:
_validate_requested_version(requested_version,

View File

@@ -106,8 +106,8 @@ class BaseTestCase(base.ClientTestBase):
client.wait_for_share_deletion(
res_id, microversion=res["microversion"])
else:
LOG.warn("Provided unsupported resource type for "
"cleanup '%s'. Skipping." % res["type"])
LOG.warning("Provided unsupported resource type for "
"cleanup '%s'. Skipping." % res["type"])
res["deleted"] = True
@classmethod