bufferhandler should log right from the beginning

This commit is contained in:
Matthias 2020-08-27 11:37:20 +02:00
parent 56ca37fd8b
commit bf5a082358

View File

@ -41,13 +41,14 @@ def setup_logging_pre() -> None:
"""
Early setup for logging.
Uses INFO loglevel and only the Streamhandler.
Early messages (before proper logging setup) will therefore only be available
after the proper logging setup.
Early messages (before proper logging setup) will therefore only be sent to additional
logging handlers after the real initialization, because we don't know which
ones the user desires beforehand.
"""
logging.basicConfig(
level=logging.INFO,
format=LOGFORMAT,
handlers=[logging.StreamHandler(sys.stderr)]
handlers=[logging.StreamHandler(sys.stderr), bufferHandler]
)