mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Setup auth_tracker file
This commit is contained in:
parent
5546118517
commit
0dc075d147
8
main.py
8
main.py
@ -73,6 +73,14 @@ def do_intro():
|
||||
|
||||
def setup_logging(debug=True):
|
||||
logging_config_file = os.path.join(os.path.curdir, "app", "config", "logging.json")
|
||||
if not helper.check_file_exists(
|
||||
os.path.join(os.path.curdir, "logs", "auth_tracker.log")
|
||||
):
|
||||
open(
|
||||
os.path.join(os.path.curdir, "logs", "auth_tracker.log"),
|
||||
"a",
|
||||
encoding="utf-8",
|
||||
).close()
|
||||
|
||||
if os.path.exists(logging_config_file):
|
||||
# open our logging config file
|
||||
|
Loading…
Reference in New Issue
Block a user