commit | 25c377f97a4b3b40c41b9a8d33f5f064d9dd528c | [log] [tgz] |
---|---|---|
author | Chad Horohoe <chorohoe@wikimedia.org> | Thu Mar 21 16:27:47 2013 -0400 |
committer | David Pursehouse <david.pursehouse@sonymobile.com> | Fri Mar 22 13:48:26 2013 +0000 |
tree | 4addb3987a7e58448fdcd12af99e3d4b5c995430 | |
parent | 4bc56989ae48fee076f3d592ab640c4f63641272 [diff] |
Only log missed ChangeListener events in debug mode There's no point in spamming an install's error_log just because hooks-its hasn't handled a specific event type. Change-Id: I3e67a6e83f0944ae1d53395cd2405f38be775050
diff --git a/hooks-its/src/main/java/com/googlesource/gerrit/plugins/hooks/workflow/GerritHookFilter.java b/hooks-its/src/main/java/com/googlesource/gerrit/plugins/hooks/workflow/GerritHookFilter.java index 10b13d6..b89d1b3 100644 --- a/hooks-its/src/main/java/com/googlesource/gerrit/plugins/hooks/workflow/GerritHookFilter.java +++ b/hooks-its/src/main/java/com/googlesource/gerrit/plugins/hooks/workflow/GerritHookFilter.java
@@ -172,7 +172,7 @@ } else if (event instanceof RefUpdatedEvent) { doFilter((RefUpdatedEvent) event); } else { - log.info("Event " + event + " not recognised and ignored"); + log.debug("Event " + event + " not recognised and ignored"); } } catch (Throwable e) { log.error("Event " + event + " processing failed", e);