should have logging and startup fixed

This commit is contained in:
phixxy 2024-02-02 22:28:44 -08:00
parent 9cae625cc2
commit 3f30f13ad7
2 changed files with 18 additions and 14 deletions

View file

@ -1,4 +1,5 @@
import logging
import os
from logging.config import dictConfig
LOGGING_CONFIG = {
@ -40,4 +41,8 @@ LOGGING_CONFIG = {
},
}
if not os.path.isdir("logs"):
os.mkdir("logs")
with open("logs/info.log", "a") as f:
pass
dictConfig(LOGGING_CONFIG)