feat: Add logging and error handling enhancements
- Introduced new logging modules for action tracking, error logging, and performance tracking to improve observability. - Added functions for retrieving debug and error log paths in `path_config.py`. - Updated various components to utilize the new logging system, enhancing error handling and performance diagnostics. - Implemented a GUI component for viewing error logs, improving user experience in monitoring application issues. - Cleaned up unnecessary blank lines and improved code readability across multiple files.
This commit is contained in:
1 parent
bdf9312bc9
commit
efe6e2252f
48 files changed
+2165
-320
No files matched your search
@@ -239,3 +239,6 @@ class ConfigManager:
|
||||
|
||||
if "y_pianyi" in config:
|
||||
analyser.y_pianyi = int(config["y_pianyi"] or 0)
|
||||
|
||||
if "enable_whole_detail_ocr" in config:
|
||||
analyser.enable_whole_detail_ocr = bool(config["enable_whole_detail_ocr"])
|
||||
@@ -62,6 +62,12 @@ def normalize_countdown_text(text: str) -> str:
|
||||
if (total1 > 900 and total2 <= 900) or (ss >= 60 and mm < 60):
|
||||
mm, ss = ss, mm
|
||||
return f"{mm}:{ss:02d}后开奖"
|
||||
# 新的兜底解析路径:处理诸如 14后开奖、1413后开奖、1304后开奖等无分割符的情况
|
||||
m = re.search(r"(\d{1,2})(\d{2})后开奖", t)
|
||||
if m:
|
||||
mm = int(m.group(1))
|
||||
ss = int(m.group(2))
|
||||
return f"{mm}:{ss:02d}后开奖"
|
||||
# 识别错序:54后开奖04
|
||||
m = re.search(r"(\d{1,2})后开奖(\d{2})", t)
|
||||
if m:
|
||||
|
||||
Reference in new issue
Block a user