Merge "Use LOG.warning instead of deprecated LOG.warn"

This commit is contained in:
Zuul 2021-11-30 01:31:20 +00:00 committed by Gerrit Code Review
commit 1665c0dcd1
2 changed files with 3 additions and 3 deletions

View File

@ -96,8 +96,8 @@ def rand_quotas(zones=None, zone_records=None, zone_recordsets=None,
quotas_dict['api_export_size'] = \
api_export_size or data_utils.rand_int_id(100, 999999)
else:
LOG.warn("Leaving `api_export_size` out of quota data due to: "
"https://bugs.launchpad.net/designate/+bug/1573141")
LOG.warning("Leaving `api_export_size` out of quota data due to: "
"https://bugs.launchpad.net/designate/+bug/1573141")
return quotas_dict

View File

@ -82,7 +82,7 @@ class DnsClientBase(rest_client.RestClient):
"received not-int read_code %(read_code)r" %
{'expected_code': expected_code,
'read_code': read_code})
LOG.warn(message)
LOG.warning(message)
return super(DnsClientBase, cls).expected_success(
expected_code=expected_code, read_code=int(read_code),
)