Only show Chrome diagnostics when there are issues
Silence the diagnostic report when all checks pass to reduce noise.
This commit is contained in:
@@ -113,11 +113,13 @@ 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());
|
||||||
|
if !report.all_ok() {
|
||||||
println!("{}", report.format_report());
|
println!("{}", report.format_report());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Apply safari flag override
|
// Apply safari flag override
|
||||||
if cli.safari {
|
if cli.safari {
|
||||||
|
|||||||
Reference in New Issue
Block a user