Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b4bed78

Browse files
committed
Move some logging calls down to DEBUG level.
The idea is that a "normal" import of matplotlib should not trigger log calls above the DEBUG level.
1 parent af4830e commit b4bed78

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/backends/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def do_nothing(*args, **kwargs):
8787
draw_if_interactive = getattr(backend_mod, 'draw_if_interactive',
8888
do_nothing)
8989

90-
_log.info('backend %s version %s' % (name, backend_version))
90+
_log.debug('backend %s version %s', name, backend_version)
9191

9292
# need to keep a global reference to the backend for compatibility
9393
# reasons. See https://github.com/matplotlib/matplotlib/issues/6092

lib/matplotlib/font_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@ def _rebuild():
14581458
_rebuild()
14591459
else:
14601460
fontManager.default_size = None
1461-
_log.info("Using fontManager instance from %s", _fmcache)
1461+
_log.debug("Using fontManager instance from %s", _fmcache)
14621462
except cbook.Locked.TimeoutError:
14631463
raise
14641464
except:

0 commit comments

Comments
 (0)