Change LOG.warn to LOG.warning

Python 3 deprecated the logger.warn method, see:
https://docs.python.org/3/library/logging.html#logging.warning
so we prefer to use warning to avoid DeprecationWarning.

Change-Id: I6916a95800f003e96736c7e8fe45f3cfe242d983
Closes-Bug: #1530742
This commit is contained in:
zhangguoqing 2016-01-04 14:05:29 +00:00
parent e92bf8069f
commit e72c9d5ef8
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ class HTTPClient(object):
self.log_http_response(resp)
if 400 <= resp.status < 600:
LOG.warn("Request returned failure status.")
LOG.warning("Request returned failure status.")
error_json = self._extract_error_json(body_str)
raise exceptions.from_response(
resp, error_json.get('faultstring'),