diff --git a/java/com/google/gerrit/server/git/validators/CommitValidators.java b/java/com/google/gerrit/server/git/validators/CommitValidators.java index d5db92f9a1..5b2c77d806 100644 --- a/java/com/google/gerrit/server/git/validators/CommitValidators.java +++ b/java/com/google/gerrit/server/git/validators/CommitValidators.java @@ -225,6 +225,7 @@ public class CommitValidators { messages.addAll(commitValidator.onCommitReceived(receiveEvent)); } } catch (CommitValidationException e) { + log.debug("CommitValidationException occurred: {}", e.getFullMessage(), e); // Keep the old messages (and their order) in case of an exception messages.addAll(e.getMessages()); throw new CommitValidationException(e.getMessage(), messages);