Skip to content

Commit

Permalink
Fix some log spam
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim committed Sep 7, 2024
1 parent 84cffcb commit 4237455
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/hacks.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
use bevy::prelude::*;

pub(super) fn plugin(_app: &mut App) {}
2 changes: 1 addition & 1 deletion src/level.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub(super) fn plugin(app: &mut App) {
Update,
// No need to place this in a set, as it the state transition will
// only run next frame anyways, as `Update` is run after `StateTransition`.
finish_spawning_level,
finish_spawning_level.run_if(in_state(GameplayState::SpawningLevel)),
);
}

Expand Down
10 changes: 10 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ mod character;
mod collision_layer;
#[cfg(feature = "dev")]
mod dev_tools;
mod hacks;
mod level;
mod player;
mod screens;
Expand All @@ -16,6 +17,7 @@ use avian3d::PhysicsPlugins;
use bevy::{
asset::AssetMetaCheck,
audio::{AudioPlugin, Volume},
log::LogPlugin,
prelude::*,
};
use blenvy::BlenvyPlugin;
Expand Down Expand Up @@ -59,6 +61,13 @@ impl Plugin for AppPlugin {
volume: Volume::new(0.3),
},
..default()
})
.set(LogPlugin {
// Blenvy's alpha currently logs debug messages under the info level, so we disable that in general
// The ronstring_to_reflect_component is reporting a warning for `components_meta`, which is exported by mistake.
filter: "blenvy=warn,blenvy::components::ronstring_to_reflect_component=error"
.to_string(),
..default()
}),
);

Expand All @@ -77,6 +86,7 @@ impl Plugin for AppPlugin {
ui_camera::plugin,
character::plugin,
system_set::plugin,
hacks::plugin,
));

// Enable dev tools for dev builds.
Expand Down

0 comments on commit 4237455

Please sign in to comment.