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:
Swapnil Kulkarni (coolsvap) 2016-03-11 14:57:27 +05:30
parent 2d603c051c
commit 787bf7041f

View File

@ -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}