Skip to content

Commit

Permalink
Remove exception logging from error log (#167)
Browse files Browse the repository at this point in the history
* Logging exception only in case of debug

* update
  • Loading branch information
sanket-mundra authored Jun 12, 2023
1 parent cecefcc commit 385a24e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private boolean matches(String lhs, String rhs, RelationalOperator relationalOpe
try {
return Pattern.compile(rhs).matcher(lhs).find();
} catch (Exception e) {
log.error("Invalid regex: {} passed to match: {}", rhs, e);
log.error("Invalid regex: {} passed to match", rhs);
if (log.isDebugEnabled()) {
log.debug(
"Invalid regex passed to match. Hence returning false. lhs: {} and rhs: {}",
Expand Down

0 comments on commit 385a24e

Please sign in to comment.