diff --git a/java/com/google/gerrit/server/mail/send/ProjectWatch.java b/java/com/google/gerrit/server/mail/send/ProjectWatch.java index 06a2e0d9b9..eb3b831034 100644 --- a/java/com/google/gerrit/server/mail/send/ProjectWatch.java +++ b/java/com/google/gerrit/server/mail/send/ProjectWatch.java @@ -99,9 +99,9 @@ public class ProjectWatch { try { add(matching, state.getNameKey(), nc); } catch (QueryParseException e) { - logger.atWarning().withCause(e).log( - "Project %s has invalid notify %s filter \"%s\"", - state.getName(), nc.getName(), nc.getFilter()); + logger.atInfo().log( + "Project %s has invalid notify %s filter \"%s\": %s", + state.getName(), nc.getName(), nc.getFilter(), e.getMessage()); } } } @@ -232,8 +232,8 @@ public class ProjectWatch { logger.atFine().log("The filter did not match for account %s; skip notification", accountId); } catch (QueryParseException e) { // Ignore broken filter expressions. - logger.atWarning().withCause(e).log( - "Account %s has invalid filter in project watch %s", accountId, key); + logger.atInfo().log( + "Account %s has invalid filter in project watch %s: %s", accountId, key, e.getMessage()); } return false; }