From f350c19ec16f6a02fb4bfdbf3942d47efa94f0fd Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 10 Jan 2026 17:52:45 +0100 Subject: [PATCH] Add some debug info. --- app/Console/Commands/Tools/ApplyRules.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/Tools/ApplyRules.php b/app/Console/Commands/Tools/ApplyRules.php index f610ba686b..264d37e50d 100644 --- a/app/Console/Commands/Tools/ApplyRules.php +++ b/app/Console/Commands/Tools/ApplyRules.php @@ -342,18 +342,20 @@ class ApplyRules extends Command /** @var RuleGroup $group */ foreach ($this->groups as $group) { - Log::debug(sprintf('Found rule group #%d', $group->id)); + Log::debug(sprintf('Scanning rule group #%d', $group->id)); $rules = $this->ruleGroupRepository->getActiveStoreRules($group); /** @var Rule $rule */ foreach ($rules as $rule) { - Log::debug(sprintf('Found rule #%d', $rule->id)); // if in rule selection, or group in selection or all rules, it's included. $test = $this->includeRule($rule, $group); if ($test) { Log::debug(sprintf('Will include rule #%d "%s"', $rule->id, $rule->title)); $rulesToApply->push($rule); } + if(!$test) { + Log::debug(sprintf('Will not include rule #%d', $rule->id)); + } } } Log::debug(sprintf('Found %d rules to apply.', $rulesToApply->count()));