should have logging and startup fixed
This commit is contained in:
parent
9cae625cc2
commit
3f30f13ad7
2 changed files with 18 additions and 14 deletions
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue