prevent the root logger from inialising

This commit is contained in:
Thomas Bird 2020-12-15 19:50:34 +00:00
parent 1ddf2f39c7
commit cbb8c66da3

View File

@ -67,8 +67,10 @@ CONFIG_SECTION_ORDER = ["paths", "variables", "system", "nlp", "components", "co
# fmt: on # fmt: on
logging.basicConfig(format="%(message)s")
logger = logging.getLogger("spacy") 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: class ENV_VARS: