use log.warning instead of log.warn
we noticed this in our py34 gate job: oslo_log/versionutils.py:274 DeprecationWarning The 'warn' method is deprecated, use 'warning' instead Change-Id: I8a7d26b5ad55ff46cb8fcebf0b6812d4554ca2e9 Closes-Bug: 1508442
This commit is contained in:
parent
38db7f2d08
commit
3836095f8c
|
@ -271,7 +271,7 @@ def report_deprecated_feature(logger, msg, *args, **kwargs):
|
|||
return
|
||||
|
||||
sent_args.append(args)
|
||||
logger.warn(stdmsg, *args, **kwargs)
|
||||
logger.warning(stdmsg, *args, **kwargs)
|
||||
|
||||
|
||||
class DeprecatedConfig(Exception):
|
||||
|
|
Loading…
Reference in New Issue