EventFactory: Log exception when getting commit message fails

Without the stacktrace the error log is not very useful.

Change-Id: I29688404e51f999bc06c6ec47b2de5bd1a6e238d
Signed-off-by: Edwin Kempin <ekempin@google.com>
(cherry picked from commit e73f1ea0bf)
This commit is contained in:
Edwin Kempin
2018-05-07 15:17:12 +02:00
committed by David Pursehouse
parent 27f6c5d90d
commit 933ca6dd47

View File

@@ -150,7 +150,7 @@ public class EventFactory {
try {
a.commitMessage = changeDataFactory.create(db, change).commitMessage();
} catch (Exception e) {
log.error("Error while getting full commit message for change " + a.number);
log.error("Error while getting full commit message for change " + a.number, e);
}
a.url = getChangeUrl(change);
a.owner = asAccountAttribute(change.getOwner());