From efebc234b557d80876091f398ba8cda210a61c06 Mon Sep 17 00:00:00 2001 From: fdev31 Date: Mon, 23 Oct 2023 20:39:26 +0200 Subject: [PATCH] add a couple of logs --- pyprland/plugins/scratchpads.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyprland/plugins/scratchpads.py b/pyprland/plugins/scratchpads.py index df3a96f..d6a7775 100644 --- a/pyprland/plugins/scratchpads.py +++ b/pyprland/plugins/scratchpads.py @@ -303,6 +303,7 @@ class Extension(Plugin): # pylint: disable=missing-class-docstring """Update every scratchpads information if no `scratch` given, else update a specific scratchpad info""" if scratch is None: + self.log.info("update from None") for client in await hyprctlJSON("clients"): assert isinstance(client, dict) scratch = self.scratches_by_address.get(client["address"][2:]) @@ -316,6 +317,7 @@ class Extension(Plugin): # pylint: disable=missing-class-docstring add_to_address_book = ("address" not in scratch.client_info) or ( scratch.address not in self.scratches_by_address ) + self.log.info(f"update from something, adding: {add_to_address_book}") await scratch.updateClientInfo() if add_to_address_book: self.scratches_by_address[scratch.client_info["address"][2:]] = scratch