mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
prevent the root logger from inialising
This commit is contained in:
parent
1ddf2f39c7
commit
cbb8c66da3
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user