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:
Alan Orth
2023-05-17 23:00:36 +03:00
parent 7ab5f3b489
commit c37622cb3f

View File

@@ -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;
}