feat: 优化代码格式和可读性,增强日志清理策略配置

This commit is contained in:
Your Name committed 2026-01-06 17:00:54 +08:00
1 parent dcded08796
commit 917438af2e
12 files changed
+190 -59

No files matched your search

+7 -2
View File
@@ -600,8 +600,13 @@ class underlying_operations:
except Exception:
pass
try:
with open(self._screenshot_log_path, "a", encoding="utf-8") as _lf:
_lf.write(json.dumps(end_record, ensure_ascii=False) + "\n")
with open(
self._screenshot_log_path, "a", encoding="utf-8"
) as _lf:
_lf.write(
json.dumps(end_record, ensure_ascii=False)
+ "\n"
)
except Exception:
pass
except Exception: