From dfcb81258894c1ed834af4fd7494de3179f2fb70 Mon Sep 17 00:00:00 2001 From: Tilman Hausherr Date: Sun, 7 Jul 2024 15:30:31 +0200 Subject: [PATCH] TIKA-4274: include file name in logging --- .../java/org/apache/tika/eval/app/io/ExtractReader.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tika-eval/tika-eval-app/src/main/java/org/apache/tika/eval/app/io/ExtractReader.java b/tika-eval/tika-eval-app/src/main/java/org/apache/tika/eval/app/io/ExtractReader.java index a56e386e90..bfab8b253f 100644 --- a/tika-eval/tika-eval-app/src/main/java/org/apache/tika/eval/app/io/ExtractReader.java +++ b/tika-eval/tika-eval-app/src/main/java/org/apache/tika/eval/app/io/ExtractReader.java @@ -119,13 +119,13 @@ public List 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); }