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>
This commit is contained in:
Edwin Kempin
2018-05-07 15:17:12 +02:00
parent ef53f46c8e
commit e73f1ea0bf

View File

@@ -158,7 +158,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());