bufferhandler should log right from the beginning
This commit is contained in:
parent
56ca37fd8b
commit
bf5a082358
@ -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]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user