mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Add extra debug logging to anime path
This commit is contained in:
@@ -49,7 +49,12 @@ async fn main() -> Result<()> {
|
||||
let self_version = env!("CARGO_PKG_VERSION");
|
||||
let zbus_con = zbus::blocking::Connection::system()?;
|
||||
let platform_proxy = rog_dbus::zbus_platform::PlatformProxyBlocking::new(&zbus_con)?;
|
||||
let asusd_version = platform_proxy.version().unwrap();
|
||||
let asusd_version = platform_proxy
|
||||
.version()
|
||||
.map_err(|e| {
|
||||
println!("Could not get asusd version: {e:?}\nIs asusd.service running?");
|
||||
})
|
||||
.unwrap();
|
||||
if asusd_version != self_version {
|
||||
println!("Version mismatch: asusctl = {self_version}, asusd = {asusd_version}");
|
||||
return Ok(());
|
||||
|
||||
@@ -208,7 +208,15 @@ pub fn init_tray(_supported_properties: Vec<Properties>, config: Arc<Mutex<Confi
|
||||
}
|
||||
}
|
||||
}
|
||||
Err(e) => warn!("Couldn't get mode form supergfxd: {e:?}")
|
||||
Err(e) => match e {
|
||||
zbus::Error::MethodError(_, _, message) => {
|
||||
warn!(
|
||||
"Couldn't get mode from supergfxd: {message:?}, the supergfxd service \
|
||||
may not be running or installed"
|
||||
)
|
||||
}
|
||||
_ => warn!("Couldn't get mode from supergfxd: {e:?}")
|
||||
}
|
||||
}
|
||||
|
||||
info!("Started ROGTray");
|
||||
|
||||
Reference in New Issue
Block a user