mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
dspace-api: improve logging in ImageMagickThumbnailFilter
Instead of logging the name of the source bitstream, we should be logging the name of the actual thumbnail bitstream that is being considered for replacement. For example, instead of this: IM Thumbnail manual.pdf matches pattern and is replaceable. ... the message should read: IM Thumbnail manual.pdf.jpg matches pattern and is replaceable. This message is already confusing enough, but this will help.
This commit is contained in:
@@ -209,14 +209,14 @@ public abstract class ImageMagickThumbnailFilter extends MediaFilter {
|
||||
if (replaceRegex.matcher(description).matches()) {
|
||||
if (verbose) {
|
||||
System.out.format("%s %s matches pattern and is replaceable.%n",
|
||||
description, nsrc);
|
||||
description, n);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (description.equals(getDescription())) {
|
||||
if (verbose) {
|
||||
System.out.format("%s %s is replaceable.%n",
|
||||
getDescription(), nsrc);
|
||||
getDescription(), n);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user