From 695080eda1a60140f525a57cd77037f0c1a3b737 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Mon, 17 May 2021 22:03:38 +0100 Subject: [PATCH] More debug player logging --- player.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/player.py b/player.py index 05246bb..b543936 100644 --- a/player.py +++ b/player.py @@ -340,6 +340,12 @@ class Player: plan_copy: List[PlanItem] = copy.copy(self.state.get()["show_plan"]) found: Optional[PlanItem ] = None + before = [] + for item in plan_copy: + before += (item.weight, item.name) + + self.logger.log.debug("Weights before removing weight{}:\n{}".format(weight, before)) + for i in plan_copy: if i.weight == weight: found = i