Skip to content

Commit

Permalink
Generates log file on start up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luminaex committed Dec 22, 2023
1 parent 3ac2148 commit 616a7e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import os
from yaml import safe_load as load
import sys
from time import strftime
import time

import stackprinter
stackprinter.set_excepthook(style='darkbg')

from loguru import logger
logger.add("user/{0}.log".format(strftime("%d-%m-%Y-%H_%M_%S", time.localtime(time.time()))), colorize=False, backtrace=True, diagnose=True)

from src.lib.textcolor import color
from src.backend import bootstrap_browser, bootstrap_login_page
Expand Down

0 comments on commit 616a7e8

Please sign in to comment.