Skip to content

Commit

Permalink
Re-clasify some log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jakerr committed Mar 23, 2023
1 parent 4007ddd commit 09bd5d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/file_formats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ fn ui_sys(
let button = egui::Button::new(text).fill(bg_color);
let click = ui.add(button).clicked();
if click {
info!("clicked: {}", info.file_name);
debug!("clicked: {}", info.file_name);
if let Some(asset) = &info.asset {
if let Some(sound_asset) = assets.get(&asset.0) {
let sound_data = sound_asset.sound.clone();
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use bevy::{
app::Plugin,
prelude::{warn, AddAsset, Component, Handle},
prelude::{error, AddAsset, Component, Handle},
time::Timer,
};

Expand Down Expand Up @@ -43,7 +43,7 @@ impl Default for KiraContext {
fn default() -> Self {
let manager = AudioManager::<CpalBackend>::new(AudioManagerSettings::default());
if let Err(ref error) = manager {
warn!("Error creating KiraContext: {}", error);
error!("Error creating KiraContext: {}", error);
}
Self {
manager: manager.ok(),
Expand Down
4 changes: 2 additions & 2 deletions src/static_sound_loader.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use anyhow::Result;
use bevy::asset::{AssetLoader, LoadContext, LoadedAsset};
use bevy::prelude::info;
use bevy::prelude::debug;
use bevy::reflect::impl_type_uuid;
use bevy::utils::BoxedFuture;
use kira::sound::static_sound::{StaticSoundData, StaticSoundSettings};
Expand Down Expand Up @@ -33,7 +33,7 @@ impl AssetLoader for StaticSoundFileLoader {
for byte in bytes {
sound_bytes.push(*byte);
}
info!("Loading sound with {} bytes", sound_bytes.len());
debug!("Loading sound with {} bytes", sound_bytes.len());
let sound = StaticSoundData::from_cursor(
Cursor::new(sound_bytes),
StaticSoundSettings::default(),
Expand Down

0 comments on commit 09bd5d8

Please sign in to comment.