Replace deprecated LOG.warn with LOG.warning
LOG.warn is deprecated. It is still used in a few places. This replaces it with the non-deprecated LOG.warning. Change-Id: I7ed615a24dcb4eff919d747d8f30625d6d4db0ee Partial-Bug:#1508442
This commit is contained in:
parent
b30fad9965
commit
a36b42afef
|
@ -178,7 +178,7 @@ class HTTPClient(object):
|
|||
self.log_http_response(resp)
|
||||
|
||||
if 400 <= resp.status < 600:
|
||||
LOG.warn(_LW("Request returned failure status."))
|
||||
LOG.warning(_LW("Request returned failure status."))
|
||||
error_json = _extract_error_json(body_str)
|
||||
raise exc.from_response(
|
||||
resp, error_json.get('faultstring'),
|
||||
|
|
Loading…
Reference in New Issue