From e149c1423979b27cb0b1d38ca4616267ba836610 Mon Sep 17 00:00:00 2001 From: Edwin Kempin Date: Mon, 7 May 2018 15:18:38 +0200 Subject: [PATCH] EventFactory: Log PatchListNotAvailableException always as error There is only one place where PatchListNotAvailableException is logged as a warning, everywhere else (EventFactory, ChangeAbandoned, ChangeMerged, ...) it is logged as an error. Make this consistent. Change-Id: I0104a280c984e2c8244618fa518b320bad0407af Signed-off-by: Edwin Kempin (cherry picked from commit 1ea84c5d83f6d27efb25c37e5f2d5b949acbd8a9) --- .../main/java/com/google/gerrit/server/events/EventFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/events/EventFactory.java b/gerrit-server/src/main/java/com/google/gerrit/server/events/EventFactory.java index efd3c59f31..2584559d47 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/events/EventFactory.java +++ b/gerrit-server/src/main/java/com/google/gerrit/server/events/EventFactory.java @@ -426,7 +426,7 @@ public class EventFactory { patchSetAttribute.files.add(p); } } catch (PatchListNotAvailableException e) { - log.warn("Cannot get patch list", e); + log.error("Cannot get patch list", e); } }