From a36b42afef7d63874300981c7d41b05a8220a98a Mon Sep 17 00:00:00 2001 From: Tin Lam Date: Sun, 14 Feb 2016 16:29:42 -0600 Subject: [PATCH] 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 --- watcherclient/common/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watcherclient/common/http.py b/watcherclient/common/http.py index 02b2800..871ccf2 100644 --- a/watcherclient/common/http.py +++ b/watcherclient/common/http.py @@ -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'),