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:
parent
5a7ad5675d
commit
76ca6115a3
4 changed files with 30 additions and 3 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue