From eb396044042e06983a6d5b9262e55f734b1c6e44 Mon Sep 17 00:00:00 2001 From: Dove6 <24943032+Dove6@users.noreply.github.com> Date: Thu, 15 Aug 2024 23:35:00 +0200 Subject: [PATCH] Disable some logs --- pixlib/src/plugins/events_plugin.rs | 6 +++--- pixlib/src/plugins/graphics_plugin.rs | 4 ++-- pixlib/src/plugins/scripts_plugin.rs | 9 ++++++++- pixlib/src/plugins/sounds_plugin.rs | 18 ++++++++---------- 4 files changed, 21 insertions(+), 16 deletions(-) diff --git a/pixlib/src/plugins/events_plugin.rs b/pixlib/src/plugins/events_plugin.rs index 3a01f88..dce7725 100644 --- a/pixlib/src/plugins/events_plugin.rs +++ b/pixlib/src/plugins/events_plugin.rs @@ -1,6 +1,6 @@ use bevy::{ app::{App, Plugin, Update}, - log::{info, warn}, + log::warn, prelude::{Event, EventReader, EventWriter, NonSend}, }; @@ -96,7 +96,7 @@ fn redistribute_sound_events( mut writer: EventWriter, ) { for evt in runner.events_out.sound.borrow_mut().drain(..) { - info!("Redistributing sound event {}", evt); + // info!("Redistributing sound event {}", evt); writer.send(PixlibSoundEvent(evt)); } } @@ -109,7 +109,7 @@ fn re_redistribute_sound_events( if evt_id.id > 100 { warn!("Postponed event ID: {}", evt_id.id); }; - warn!("Re-redistributing sound event {}", evt.0); + // warn!("Re-redistributing sound event {}", evt.0); re_writer.send(PixlibSoundEvent(evt.0.clone())); } } diff --git a/pixlib/src/plugins/graphics_plugin.rs b/pixlib/src/plugins/graphics_plugin.rs index 64bfe16..3ea7678 100644 --- a/pixlib/src/plugins/graphics_plugin.rs +++ b/pixlib/src/plugins/graphics_plugin.rs @@ -98,7 +98,7 @@ pub fn create_pool(mut commands: Commands) { fn run_if_any_script_loaded(mut reader: EventReader) -> bool { let mut any_script_loaded = false; for evt in reader.read() { - info!("Popped event: {:?}", evt); + // info!("Popped event: {:?}", evt); if matches!(evt.0, ScriptEvent::ScriptLoaded { .. }) { any_script_loaded = true; } @@ -142,7 +142,7 @@ pub fn assign_pool(mut query: Query<&mut GraphicsMarker>, runner: NonSend