Skip to content

Commit

Permalink
TIKA-4274: include file name in logging
Browse files Browse the repository at this point in the history
  • Loading branch information
THausherr committed Jul 7, 2024
1 parent 1039898 commit dfcb812
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ public List<Metadata> loadExtract(Path extractFile) throws ExtractReaderExceptio
}

if (minExtractLength > IGNORE_LENGTH && length < minExtractLength) {
LOG.info("minExtractLength {} > IGNORE_LENGTH {} and length {} < minExtractLength {}",
minExtractLength, IGNORE_LENGTH, length, minExtractLength);
LOG.info("minExtractLength {} > IGNORE_LENGTH {} and length {} < minExtractLength {} for file '{}'",
minExtractLength, IGNORE_LENGTH, length, minExtractLength, extractFile);
throw new ExtractReaderException(ExtractReaderException.TYPE.EXTRACT_FILE_TOO_SHORT);
}
if (maxExtractLength > IGNORE_LENGTH && length > maxExtractLength) {
LOG.info("maxExtractLength {} > IGNORE_LENGTH {} and length {} > maxExtractLength {}",
maxExtractLength, IGNORE_LENGTH, length, maxExtractLength);
LOG.info("maxExtractLength {} > IGNORE_LENGTH {} and length {} > maxExtractLength {} for file '{}'",
maxExtractLength, IGNORE_LENGTH, length, maxExtractLength, extractFile);
throw new ExtractReaderException(ExtractReaderException.TYPE.EXTRACT_FILE_TOO_LONG);
}

Expand Down

0 comments on commit dfcb812

Please sign in to comment.