diag(cts_runner): raise log level to info by default (#9734)

This commit is contained in:
Erich Gubler authored and GitHub committed 2026-07-07 07:52:50 -04:00
1 parent f87b0dd1db
commit 6c4c07b204
2 files changed
+8 -1

No files matched your search

+4 -1
View File
@@ -241,6 +241,9 @@ async fn main() {
{
install_unhandled_exception_filter();
}
env_logger::init();
env_logger::builder()
.filter_level(log::LevelFilter::Info)
.parse_default_env()
.init();
unwrap_or_exit(run().await)
}
+4
View File
@@ -27,6 +27,10 @@ pub fn cts_runner_exe_path() -> PathBuf {
fn exec_cts_runner(script_file: impl AsRef<OsStr>) -> Output {
Command::new(cts_runner_exe_path())
.arg(script_file)
// NOTE: Because `cts_runner` inits `env_logger` to info-level severity by default, we can
// get unstable output that isn't super useful for snapshot tests. Just work with
// error-level logs instead.
.env("RUST_LOG", "error")
.output()
.unwrap()
}