Skip to content

Commit

Permalink
Remove error logging from PersistenceIncludeFilter (openhab#3682)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan N. Klug <[email protected]>
GitOrigin-RevId: 4be9578
  • Loading branch information
J-N-K authored and splatch committed Jul 12, 2023
1 parent a05c47b commit 106165e
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,8 @@ public boolean apply(Item item) {
}

if (inverted) {
logger.error("Compare {} {} to {} -> {}, {} -> {}", inverted, compareValue, lower,
compareValue.compareTo(lower) <= 0, upper, compareValue.compareTo(upper) >= 0);

return compareValue.compareTo(lower) <= 0 || compareValue.compareTo(upper) >= 0;
} else {

logger.error("Compare {} {} to {} -> {}, {} -> {}", inverted, compareValue, lower,
compareValue.compareTo(lower) >= 0, upper, compareValue.compareTo(upper) <= 0);
return compareValue.compareTo(lower) >= 0 && compareValue.compareTo(upper) <= 0;
}
}
Expand Down

0 comments on commit 106165e

Please sign in to comment.