1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-03 18:26:20 +00:00

Log matched rules

This commit is contained in:
M66B 2020-03-22 10:47:32 +01:00
parent 3a99834241
commit df679874a3

View file

@ -260,8 +260,12 @@ public class EntityRule {
} else
matched = haystack.toLowerCase().contains(needle.trim().toLowerCase());
Log.i("Rule=" + name + " matched=" + matched +
" needle=" + needle + " haystack=" + haystack + " regex=" + regex);
if (matched)
EntityLog.log(context, "Rule=" + name + ":" + order + " matched " +
" needle=" + needle + " haystack=" + haystack + " regex=" + regex);
else
Log.i("Rule=" + name + ":" + order + " matched=" + matched +
" needle=" + needle + " haystack=" + haystack + " regex=" + regex);
return matched;
}