Replace deprecated LOG.warn with LOG.warning
LOG.warn is deprecated. It still used in a few places. Updated to non-deprecated LOG.warning. Change-Id: Ieb3b6eaf6ffc88998364560b0c0ddda9de5adc67 Closes-Bug:#1508442
This commit is contained in:
parent
2d603c051c
commit
787bf7041f
@ -56,7 +56,7 @@ def get_existing_users():
|
||||
user, tags = line.split(None, 1)
|
||||
tags = tags.split('[')[1].split(']')[0].split(',')
|
||||
except ValueError as e:
|
||||
LOG.warn('{%s} did not have expected format.' % (line))
|
||||
LOG.warning('{%s} did not have expected format.' % (line))
|
||||
LOG.exception(e)
|
||||
continue
|
||||
users[user] = {'username': user, 'tags': tags}
|
||||
|
Loading…
Reference in New Issue
Block a user