From 7ca728e79c7a60479b0e48c6d8b29f460bf79e47 Mon Sep 17 00:00:00 2001 From: Patrick Niebeling Date: Tue, 25 Aug 2026 12:20:28 +0200 Subject: [PATCH] Log matched and moved overdue cards in WorkflowRunner Adds an info-level log line when a card passes a workflow's overdue/ filter checks, and another once the move to the target stack succeeds - so a run can be traced per card/workflow in the log, filterable by the app id. --- lib/Service/WorkflowRunner.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/Service/WorkflowRunner.php b/lib/Service/WorkflowRunner.php index 353f8cb..d40bd61 100644 --- a/lib/Service/WorkflowRunner.php +++ b/lib/Service/WorkflowRunner.php @@ -176,6 +176,14 @@ class WorkflowRunner { continue; } + $this->logger->info('Card {card} ("{title}") matches workflow {id}; moving to stack {target}.', [ + 'app' => 'workflow_deck_automation', + 'card' => $card->getId(), + 'title' => $card->getTitle(), + 'id' => $workflow->getId(), + 'target' => $workflow->getTargetStackId(), + ]); + if (!$this->moveCard($workflow, $card)) { continue; } @@ -254,6 +262,14 @@ class WorkflowRunner { return false; } + $this->logger->info('Moved card {card} ("{title}") to stack {target} for workflow {id}.', [ + 'app' => 'workflow_deck_automation', + 'card' => $card->getId(), + 'title' => $card->getTitle(), + 'target' => $workflow->getTargetStackId(), + 'id' => $workflow->getId(), + ]); + return true; }