Skip to content

Commit

Permalink
fix: using loguru instead of print
Browse files Browse the repository at this point in the history
  • Loading branch information
its-darsh committed Jan 30, 2024
1 parent ed4441c commit c08acb7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fabric/system_tray/system_tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ def register_bus_name(self) -> int:
Gio.BusNameOwnerFlags.NONE,
self.on_bus_acquired,
None,
lambda *args: print(
"The bus is already registered before (or an error occured)"
lambda *args: logger.warning(
"[SystemTray] The bus is already registered before (or an error occured), another bar is probably running"
),
)

Expand Down Expand Up @@ -368,9 +368,9 @@ def on_signal(
invocation.return_value(None)
conn.flush()

logger.debug(
f"STATUS NOTIFIER WATCHER:\n{sender} {path} {interface} {signal} {params} {invocation}\n",
)
# logger.debug(
# f"STATUS_NOTIFIER_WATCHER:\n{sender} {path} {interface} {signal} {params} {invocation}\n",
# )

def create_item(self, conn: Gio.DBusConnection, sender: str, path):
self.items.append(sender + path)
Expand Down

0 comments on commit c08acb7

Please sign in to comment.