Skip to content

Firefly III: a personal finances manager

Add some debug info.

James Colef350c19ec16f
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()));