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:
parent
29794985f1
commit
b60df62dc3
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue