diff --git a/main.py b/main.py index be77b54..7204e05 100644 --- a/main.py +++ b/main.py @@ -282,24 +282,6 @@ def loading(): root.mainloop() -def log(content, rate): - ... - # if rate == "info": - # logging.info(content) - # elif rate == "warning": - # logging.warning(content) - # elif rate == "error": - # logging.error(content) - # else: - # logging.error("日志评级不正确,记录内容为:" + content) - # with open(CONFIG_PATH, "a+", encoding="utf-8") as f: - # a = f.readlines() - # for x in range(len(a)): - # if "日志处理后sha256" in a[x]: - # del f.readlines()[x] - # f.write("日志处理后sha256:" + file_sha256(r"support/journal.log")) - - def on_button_click(content, need_pwd: bool = False): wait_window = tkinter.Toplevel(root) wait_window.wm_attributes("-topmost", 1)