fix: 修复日志记录错误信息时的变量引用问题

This commit is contained in:
limm
2025-11-10 16:18:28 +08:00
committed by 666ghj
parent fe82b9ed51
commit 71f4b3ad77
+2 -1
View File
@@ -554,7 +554,8 @@ def read_process_output(process, app_name):
})
except Exception as e:
logger.exception(f"Error reading output for {app_name}: {e}")
error_msg = f"Error reading output for {app_name}: {e}"
logger.exception(error_msg)
write_log_to_file(app_name, f"[{datetime.now().strftime('%H:%M:%S')}] {error_msg}")
break