feat(src/utils): replace printwith logger.error for consistent error logging

Use logger.error across utils to centralize error handling and allow configurable logging levels.
This commit is contained in:
sankalp committed 2026-06-17 05:21:19 +05:45
1 parent 1aed6ea816
commit 420688e9a7
4 files changed
+15 -12

No files matched your search

+3 -3
View File
@@ -1,4 +1,4 @@
from fabric.utils import Gio, GLib
from fabric.utils import Gio, GLib, logger
class GioDBusHelper:
@@ -67,8 +67,8 @@ class GioDBusHelper:
"""Unsubscribe a previously registered signal using its subscription id."""
try:
self.bus.signal_unsubscribe(subscription_id)
except Exception:
pass
except Exception as e:
logger.error(f"An error occurred: {e}")
def set_property(self, interface_name, property_name, value_variant):
"""Sets a D-Bus property using the standard D-Bus Properties interface."""