Removed use of deprecated LOG.warn method

LOG.warn is deprecated. We were still used it some places.
So I replaced the LOG.warn method to LOG.warning, which is not
deprecated.

Change-Id: I9461cec569445ad6c40db9ce2feeeba1ef0af0e3
Closes-Bug: #1508442
This commit is contained in:
Gábor Antal
2016-01-15 16:49:32 +01:00
parent fd6ecc1b13
commit dfc9a3b37d
3 changed files with 5 additions and 4 deletions

View File

@@ -50,8 +50,9 @@ def safe_rstrip(value, chars=None):
"""
if not isinstance(value, six.string_types):
LOG.warn(_LW("Failed to remove trailing character. Returning original "
"object. Supplied object is not a string: %s,"), value)
LOG.warning(_LW(
"Failed to remove trailing character. Returning original object."
"Supplied object is not a string: %s,"), value)
return value
return value.rstrip(chars) or value