perf: 首页展示版本信息

This commit is contained in:
Junyan Qin
2024-10-14 21:18:36 +08:00
parent 231dca956d
commit 1fbc92bc6d
10 changed files with 90 additions and 11 deletions

View File

@@ -5,6 +5,8 @@ import time
import colorlog
from ...utils import constants
log_colors_config = {
"DEBUG": "green", # cyan white
@@ -22,7 +24,7 @@ async def init_logging(extra_handlers: list[logging.Handler] = None) -> logging.
level = logging.INFO
if "DEBUG" in os.environ and os.environ["DEBUG"] in ["true", "1"]:
if constants.debug_mode:
level = logging.DEBUG
log_file_name = "data/logs/qcg-%s.log" % time.strftime(