More debug player logging

This commit is contained in:
Matthew Stratford 2021-05-17 22:03:38 +01:00
parent 2a9ef19ead
commit 695080eda1

View file

@ -340,6 +340,12 @@ class Player:
plan_copy: List[PlanItem] = copy.copy(self.state.get()["show_plan"]) plan_copy: List[PlanItem] = copy.copy(self.state.get()["show_plan"])
found: Optional[PlanItem ] = None 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: for i in plan_copy:
if i.weight == weight: if i.weight == weight:
found = i found = i