Skip to content

Commit c507fab

Browse files
committed
chore: set log level when benching to something less likely to impact benchmarks
1 parent bf310d5 commit c507fab

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

crates/testing_crates/test_utils/src/test_data.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,13 +340,16 @@ pub fn setup_integration_test<F: FnOnce(&mut World, &mut TypeRegistry)>(init: F)
340340
// first setup all normal test components and resources
341341
let mut app = setup_app(init);
342342

343+
let log_level =
344+
std::env::var("RUST_LOG").unwrap_or_else(|_| "bevy_mod_scripting_core=debug".to_string());
345+
343346
app.add_plugins((
344347
MinimalPlugins,
345348
AssetPlugin::default(),
346349
HierarchyPlugin,
347350
DiagnosticsPlugin,
348351
LogPlugin {
349-
filter: "bevy_mod_scripting_core=trace".to_string(),
352+
filter: log_level,
350353
..Default::default()
351354
},
352355
));

crates/xtask/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,6 +1284,8 @@ impl Xtasks {
12841284
std::env::set_var("ENABLE_PROFILING", "1");
12851285
// features.push(Feature::BevyTracy);
12861286
features.push(Feature::ProfileWithTracy);
1287+
} else {
1288+
std::env::set_var("RUST_LOG", "bevy_mod_scripting=error");
12871289
}
12881290

12891291
let args = if let Some(name) = name {

0 commit comments

Comments
 (0)