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. Early setup for logging.
Uses INFO loglevel and only the Streamhandler. Uses INFO loglevel and only the Streamhandler.
Early messages (before proper logging setup) will therefore only be available Early messages (before proper logging setup) will therefore only be sent to additional
after the proper logging setup. logging handlers after the real initialization, because we don't know which
ones the user desires beforehand.
""" """
logging.basicConfig( logging.basicConfig(
level=logging.INFO, level=logging.INFO,
format=LOGFORMAT, format=LOGFORMAT,
handlers=[logging.StreamHandler(sys.stderr)] handlers=[logging.StreamHandler(sys.stderr), bufferHandler]
) )