fix: logging and use dbus config subscription in audio applet

This commit is contained in:
Ashley Wulber 2024-01-18 18:16:37 -05:00 • committed by Ashley Wulber
parent 85e4e65eb8
commit 6851d9de54
20 changed files with 63 additions and 139 deletions

View file

@ -14,7 +14,8 @@ futures = "0.3"
futures-util = "0.3"
once_cell = "1.9"
xdg = "2.4"
pretty_env_logger = "0.5"
tracing-subscriber.workspace = true
tracing-log.workspace = true
nix = "0.26"
shlex = "1.1.0"
anyhow = "1.0"

View file

@ -14,7 +14,8 @@ use crate::config::{APP_ID, VERSION};
fn main() -> cosmic::iced::Result {
// Initialize logger
pretty_env_logger::init();
tracing_subscriber::fmt::init();
let _ = tracing_log::LogTracer::init();
info!("Iced Workspaces Applet ({})", APP_ID);
info!("Version: {}", VERSION);
// Prepare i18n