Change LOG.warn to LOG.warning

Python 3 deprecated the logger.warn method, see:
https://docs.python.org/3/library/logging.html#logging.warning
so we prefer to use warning to avoid DeprecationWarning.

Change-Id: Ie3b4871b38cd2a1c38a99e63a6bf83f2b5d48704
Closes-Bug: #1530742
This commit is contained in:
zhangguoqing 2016-01-04 05:19:23 +00:00
parent 8506001146
commit ba0f1d4730
1 changed files with 3 additions and 3 deletions

View File

@ -198,9 +198,9 @@ class BaseIdentityPlugin(plugin.BaseAuthPlugin):
else:
if not service_type:
LOG.warn(('Plugin cannot return an endpoint without '
'knowing the service type that is required. Add '
'service_type to endpoint filtering data.'))
LOG.warning('Plugin cannot return an endpoint without '
'knowing the service type that is required. Add '
'service_type to endpoint filtering data.')
return None
if not interface: