mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-24 22:23:43 +00:00
Merge pull request #243 from cjmayo/warning
Replace deprecated log.warn
This commit is contained in:
commit
a42bc14fc2
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ def warn (logname, msg, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
log = logging.getLogger(logname)
|
log = logging.getLogger(logname)
|
||||||
if log.isEnabledFor(logging.WARN):
|
if log.isEnabledFor(logging.WARN):
|
||||||
_log(log.warn, msg, args, **kwargs)
|
_log(log.warning, msg, args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
def error (logname, msg, *args, **kwargs):
|
def error (logname, msg, *args, **kwargs):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue