Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6c2abc5 + ba6ddcb commit 8a900fcCopy full SHA for 8a900fc
lib/matplotlib/__init__.py
@@ -382,7 +382,7 @@ def ge(self, level):
382
return self.vald[self.level] >= self.vald[level]
383
384
385
-def _wrap(fmt, func, level='DEBUG', always=True):
+def _wrap(fmt, func, level=logging.DEBUG, always=True):
386
"""
387
return a callable function that wraps func and reports its
388
output through logger
@@ -396,8 +396,7 @@ def wrapper(*args, **kwargs):
396
ret = func(*args, **kwargs)
397
398
if (always or not wrapper._spoke):
399
- lvl = logging.getLevelName(level.upper())
400
- _log.log(lvl, fmt % ret)
+ _log.log(level, fmt % ret)
401
spoke = True
402
if not wrapper._spoke:
403
wrapper._spoke = spoke
0 commit comments