feat(config): 添加exe4j环境下的浏览器路径日志记录

- 在PlaywrightManager中增加exe4j目录的日志输出- 当检测到exe4j环境时,记录使用exe4j目录下ms-playwright路径的信息
- 提高exe4j环境下浏览器路径配置的可追踪性
This commit is contained in:
2025-10-24 18:54:04 +08:00
parent fa48a88ab4
commit f4e543675b

View File

@@ -23,8 +23,10 @@ public class PlaywrightManager {
} }
try { try {
String exe4jDir = System.getenv("EXE4J_EXEDIR"); String exe4jDir = System.getenv("EXE4J_EXEDIR");
log.info("exe4j目录为:{}",exe4jDir);
String playwrightBrowsersPath; String playwrightBrowsersPath;
if (StrUtil.isNotBlank(exe4jDir)) { if (StrUtil.isNotBlank(exe4jDir)) {
log.info("当前运行环境为exe4j环境将使用exe4j目录下的ms-playwright目录");
playwrightBrowsersPath = exe4jDir + "\\ms-playwright"; playwrightBrowsersPath = exe4jDir + "\\ms-playwright";
} else { } else {
playwrightBrowsersPath = System.getenv("PLAYWRIGHT_BROWSERS_PATH"); playwrightBrowsersPath = System.getenv("PLAYWRIGHT_BROWSERS_PATH");