1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-16 14:21:03 +02:00

refactor(tray): move some debug logging to trace logging

This commit is contained in:
Jake Stanger 2024-11-08 01:38:45 +00:00
parent 486beff8a5
commit cf38c37fe3
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

View file

@ -16,7 +16,7 @@ use std::collections::HashMap;
use system_tray::client::Event;
use system_tray::client::{ActivateRequest, UpdateEvent};
use tokio::sync::mpsc;
use tracing::{debug, error, warn};
use tracing::{debug, error, trace, warn};
#[derive(Debug, Deserialize, Clone)]
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
@ -198,7 +198,8 @@ fn on_update(
menus.insert(address.into(), menu_item);
}
Event::Update(address, update) => {
debug!("Received tray update for '{address}': {update:?}");
debug!("Received tray update for '{address}'");
trace!("Tray update for '{address}: {update:?}'");
let Some(menu_item) = menus.get_mut(address.as_str()) else {
error!("Attempted to update menu at '{address}' but could not find it");