Only show Chrome diagnostics when there are issues

Silence the diagnostic report when all checks pass to reduce noise.
This commit is contained in:
Dhanji R. Prasanna
2026-01-14 04:25:13 +05:30
parent a1dfd9c0b6
commit 21eb4f2d30

View File

@@ -113,10 +113,12 @@ pub fn load_config_with_cli_overrides(cli: &Cli) -> Result<Config> {
config.webdriver.enabled = true; config.webdriver.enabled = true;
config.webdriver.browser = g3_config::WebDriverBrowser::ChromeHeadless; config.webdriver.browser = g3_config::WebDriverBrowser::ChromeHeadless;
// Run Chrome diagnostics on first use // Run Chrome diagnostics - only show output if there are issues
let report = let report =
g3_computer_control::run_chrome_diagnostics(config.webdriver.chrome_binary.as_deref()); g3_computer_control::run_chrome_diagnostics(config.webdriver.chrome_binary.as_deref());
println!("{}", report.format_report()); if !report.all_ok() {
println!("{}", report.format_report());
}
} }
// Apply safari flag override // Apply safari flag override