From b4bed78dca9cc64e05b429bf4d3bbaec79f6ebe9 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Fri, 16 Feb 2018 21:19:33 -0800 Subject: [PATCH] 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. --- lib/matplotlib/backends/__init__.py | 2 +- lib/matplotlib/font_manager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/backends/__init__.py b/lib/matplotlib/backends/__init__.py index bc07522797ab..ac7b6301e3e7 100644 --- a/lib/matplotlib/backends/__init__.py +++ b/lib/matplotlib/backends/__init__.py @@ -87,7 +87,7 @@ def do_nothing(*args, **kwargs): draw_if_interactive = getattr(backend_mod, 'draw_if_interactive', do_nothing) - _log.info('backend %s version %s' % (name, backend_version)) + _log.debug('backend %s version %s', name, backend_version) # need to keep a global reference to the backend for compatibility # reasons. See https://github.com/matplotlib/matplotlib/issues/6092 diff --git a/lib/matplotlib/font_manager.py b/lib/matplotlib/font_manager.py index b9921bd8bde9..18ad204db897 100644 --- a/lib/matplotlib/font_manager.py +++ b/lib/matplotlib/font_manager.py @@ -1458,7 +1458,7 @@ def _rebuild(): _rebuild() else: fontManager.default_size = None - _log.info("Using fontManager instance from %s", _fmcache) + _log.debug("Using fontManager instance from %s", _fmcache) except cbook.Locked.TimeoutError: raise except: