Merge pull request #243 from cjmayo/warning

Replace deprecated log.warn
This commit is contained in:
anarcat 2019-04-24 10:58:31 -04:00 committed by GitHub
commit a42bc14fc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,7 +102,7 @@ def warn (logname, msg, *args, **kwargs):
"""
log = logging.getLogger(logname)
if log.isEnabledFor(logging.WARN):
_log(log.warn, msg, args, **kwargs)
_log(log.warning, msg, args, **kwargs)
def error (logname, msg, *args, **kwargs):