add force=True to logging.basicConfig

This commit is contained in:
yaozengwei 2024-05-04 00:30:35 +08:00
parent 6d7c1d13a5
commit 90591089c0

View File

@ -163,6 +163,7 @@ def setup_logger(
format=formatter,
level=level,
filemode="w",
force=True,
)
if use_console:
console = logging.StreamHandler()