Skip to content

Commit 4dcca4a

Browse files
committed
Update the log.error to provide more specific error information.
1 parent 1e5260b commit 4dcca4a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

dspace-api/src/main/java/org/dspace/app/statistics/clarin/ClarinMatomoBitstreamTracker.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ protected void preTrack(Context context, MatomoRequest matomoRequest, Item item,
8383
bitstreamUrl = configurationService.getProperty("dspace.ui.url") + "/bitstream/handle/" +
8484
item.getHandle() + "/" + bitstreamId;
8585
} catch (IllegalArgumentException e) {
86-
log.error("Cannot get the Bitstream UUID from the URL {}", matomoRequest.getActionUrl());
86+
log.error("Cannot get the Bitstream UUID from the URL {}: {}", matomoRequest.getActionUrl(),
87+
e.getMessage(), e);
8788
}
8889

8990
// The bitstream URL is in the format `<DSPACE_UI_URL>/bitstream/handle/<ITEM_HANDLE>/<BITSTREAM_UUID>`

0 commit comments

Comments
 (0)