1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-17 23:01:04 +02:00

chore: add trace logging to volume module

This commit is contained in:
Jake Stanger 2025-03-24 11:51:26 +00:00
parent 5a7ad5675d
commit 76ca6115a3
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
4 changed files with 30 additions and 3 deletions

View file

@ -12,7 +12,7 @@ use libpulse_binding::volume::{ChannelVolumes, Volume};
use std::fmt::{Debug, Formatter};
use std::sync::{Arc, Mutex};
use tokio::sync::broadcast;
use tracing::{debug, error, info, warn};
use tracing::{debug, error, info, trace, warn};
pub use sink::Sink;
pub use sink_input::SinkInput;
@ -230,6 +230,8 @@ fn on_event(
return;
};
trace!("server event: {facility:?}, op: {op:?}, i: {i}");
match facility {
Facility::Server => on_server_event(context, &data.sinks, &data.default_sink_name, tx),
Facility::Sink => sink::on_event(context, &data.sinks, &data.default_sink_name, tx, op, i),