chore(cargo): replace log dependency with tracing

This commit is contained in:
Michael Aaron Murphy 2024-03-15 14:49:33 +01:00 committed by Jeremy Soller
parent 074d962ae9
commit 32229c16f0
No known key found for this signature in database
GPG key ID: D02FD439211AF56F
10 changed files with 10 additions and 22 deletions

View file

@ -33,7 +33,6 @@ use cosmic::Command;
use cosmic::{Element, Theme};
use cosmic_time::{anim, chain, id, once_cell::sync::Lazy, Instant, Timeline};
use log::error;
use std::collections::HashMap;
use std::path::PathBuf;
use std::time::Duration;
@ -227,8 +226,8 @@ impl cosmic::Application for CosmicBatteryApplet {
self.timeline.set_chain(chain).start();
self.set_charging_limit(enable);
}
Message::Errored(e) => {
error!("{}", e);
Message::Errored(why) => {
tracing::error!("{}", why);
}
Message::TogglePopup => {
if let Some(p) = self.popup.take() {