Merge pull request #6577 from LeapBeyond/bug/root_logger

Prevent root logger from initialising
This commit is contained in:
Ines Montani 2020-12-16 16:42:54 +11:00 committed by GitHub
commit 546af3966a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,8 +67,10 @@ CONFIG_SECTION_ORDER = ["paths", "variables", "system", "nlp", "components", "co
# fmt: on
logging.basicConfig(format="%(message)s")
logger = logging.getLogger("spacy")
logger_stream_handler = logging.StreamHandler()
logger_stream_handler.setFormatter(logging.Formatter('%(message)s'))
logger.addHandler(logger_stream_handler)
class ENV_VARS: