refactor(src/shared): replace print statements with logger.error
Use centralized logging instead of stdout prints to improve observability and consistency
This commit is contained in:
6 files changed
+26
-20
No files matched your search
@@ -1,3 +1,4 @@
|
||||
from fabric.utils import logger
|
||||
from fabric.widgets.box import Box
|
||||
from fabric.widgets.centerbox import CenterBox
|
||||
from fabric.widgets.eventbox import EventBox
|
||||
@@ -87,7 +88,7 @@ class ModusDropdown(AppletWindow):
|
||||
|
||||
try:
|
||||
modus_service.disconnect_by_func(self.hide_dropdown)
|
||||
except Exception:
|
||||
pass
|
||||
except Exception as e:
|
||||
logger.error(f"An error occurred: {e}")
|
||||
|
||||
super().destroy()
|
||||
Reference in new issue
Block a user