Skip to content

Commit

Permalink
Update logging of downloading files (#753)
Browse files Browse the repository at this point in the history
* sort file_downloads.log by date

* removed log which could generate noise
  • Loading branch information
Paurikova2 authored Sep 16, 2024
1 parent c999c5d commit c1b95e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ public void trackBitstreamDownload(Context context, HttpServletRequest request,

List<Item> items = clarinItemService.findByBitstreamUUID(context, bit.getID());
if (CollectionUtils.isEmpty(items)) {
log.error("Cannot find the Item for the bitstream with ID: " + bit.getID() +
" - the statistics cannot be logged.");
return;
}

Expand Down
2 changes: 1 addition & 1 deletion dspace/config/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
type='RollingFile'
fileName='${log.dir}/file_downloads.log'>
<Layout type='PatternLayout'
pattern='%m%n'/>
pattern='%d %m%n'/>
<policies>
<policy type='TimeBasedTriggeringPolicy'>yyyy-MM-dd</policy>
</policies>
Expand Down

0 comments on commit c1b95e9

Please sign in to comment.