From 70ea227bd0ddf9b21a84ff60966135ff48895e31 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 21 Sep 2016 21:01:10 +0200 Subject: [PATCH] Add logging to processor #322 --- app/Rules/Processor.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Rules/Processor.php b/app/Rules/Processor.php index 3d22ad7b05..139b86bb8d 100644 --- a/app/Rules/Processor.php +++ b/app/Rules/Processor.php @@ -93,6 +93,7 @@ final class Processor */ public static function makeFromString(string $triggerName, string $triggerValue) { + Log::debug(sprintf('Processor::makeFromString("%s", "%s")', $triggerName, $triggerValue)); $self = new self; $trigger = TriggerFactory::makeTriggerFromStrings($triggerName, $triggerValue, false); $self->triggers->push($trigger); @@ -160,6 +161,7 @@ final class Processor */ public function handleTransactionJournal(TransactionJournal $journal): bool { + Log::debug(sprintf('handleTransactionJournal for journal %d', $journal->id)); $this->journal = $journal; // get all triggers: $triggered = $this->triggered(); @@ -187,8 +189,10 @@ final class Processor foreach ($this->actions as $action) { /** @var ActionInterface $actionClass */ $actionClass = ActionFactory::getAction($action); + Log::debug(sprintf('Fire action %s on journal #%d', $actionClass, $this->journal->id)); $actionClass->act($this->journal); if ($action->stop_processing) { + Log::debug('Stop processing now and break.'); break; }