Don't use the root logger

The root logger should not be used in parso. Use custom loggers for each module. Fixes #9.
This commit is contained in:
Dave Halter
2017-10-12 22:59:17 +02:00
parent 8db1498185
commit 1f6683b8ac
2 changed files with 13 additions and 9 deletions

View File

@@ -11,6 +11,8 @@ import logging
from parso._compatibility import FileNotFoundError
LOG = logging.getLogger(__name__)
_PICKLE_VERSION = 30
"""
@@ -111,7 +113,7 @@ def _load_from_file_system(hashed_grammar, path, p_time, cache_path=None):
return None
else:
parser_cache.setdefault(hashed_grammar, {})[path] = module_cache_item
logging.debug('pickle loaded: %s', path)
LOG.debug('pickle loaded: %s', path)
return module_cache_item.node