From cbb8c66da328b1b000ec433234909d3f3fcda4da Mon Sep 17 00:00:00 2001 From: Thomas Bird Date: Tue, 15 Dec 2020 19:50:34 +0000 Subject: [PATCH] prevent the root logger from inialising --- spacy/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spacy/util.py b/spacy/util.py index 981ac426a..964ec1c36 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -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: