Replace LOG.warn with LOG.warning

logging.warn is deprecated in Python 3 [1].

[1] https://docs.python.org/3/library/logging.html#logging.warning

Change-Id: I7548e13bea9eb17e0fa5cfabc99e8aa0113f104b
This commit is contained in:
wangqi 2018-04-04 02:39:16 +00:00 committed by Eric Kao
parent 29794985f1
commit b60df62dc3
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@ class ValidatorDriver(datasource_driver.PollingDataSourceDriver):
try:
value = parsing.parse_value(option.type, value)
except (ValueError, TypeError):
LOG.warn('Value for option %s is not valid : %s' % (
LOG.warning('Value for option %s is not valid : %s' % (
option.name, value))
self.translate_value(file_id, option.id_, value)