From c40e25168b8b8b2fe318a26abc384d9c4bf9657f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Fri, 29 Dec 2023 10:35:55 +0000 Subject: [PATCH] Log an error when the D-Bus tree cannot be updated --- rust/agama-dbus-server/src/network/system.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rust/agama-dbus-server/src/network/system.rs b/rust/agama-dbus-server/src/network/system.rs index 097c0fd5e0..5272d58596 100644 --- a/rust/agama-dbus-server/src/network/system.rs +++ b/rust/agama-dbus-server/src/network/system.rs @@ -119,7 +119,9 @@ impl NetworkSystem { let tree = Arc::clone(&self.tree); tokio::spawn(async move { let mut tree = tree.lock().await; - _ = tree.set_connections(&mut connections).await; + if let Err(e) = tree.set_connections(&mut connections).await { + log::error!("Could not update the D-Bus tree: {}", e); + } }); } }