Add warning log for Playwright server connection failure

Introduce a warning log to notify when failing to connect to the Playwright server, followed by a fallback to launching a local browser.
This commit is contained in:
2025-08-29 01:39:40 -04:00
parent 8b4e43c40f
commit d0fffb0411

View File

@@ -173,6 +173,7 @@ func NewPlayWrightBrowser(opts ...PlayWrightBrowserOptions) (Browser, error) {
if opt.DontLaunchOnConnectFailure {
return nil, err
}
slog.Warn("failed to connect to playwright server, launching local browser", "err", err)
launch = true
}
}