mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Merge pull request #6577 from LeapBeyond/bug/root_logger
Prevent root logger from initialising
This commit is contained in:
commit
546af3966a
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user