Skip to content

Commit

Permalink
dspace-api: improve logging in ImageMagickThumbnailFilter
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alanorth committed May 22, 2023
1 parent 7ab5f3b commit c37622c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -209,14 +209,14 @@ public boolean preProcessBitstream(Context c, Item item, Bitstream source, boole
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;
}
Expand Down

0 comments on commit c37622c

Please sign in to comment.