From d75ad1b21f92297345c80d80c8f60c36d5f8287f Mon Sep 17 00:00:00 2001 From: Sidhesh Mhatre Date: Thu, 30 Jul 2015 10:48:55 -0400 Subject: [PATCH] Avoid duplicate logging of propagated exception. --- .../org/sleuthkit/autopsy/keywordsearch/AbstractFileChunk.java | 1 - 1 file changed, 1 deletion(-) diff --git a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/AbstractFileChunk.java b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/AbstractFileChunk.java index f86cfb519e..81e200108e 100644 --- a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/AbstractFileChunk.java +++ b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/AbstractFileChunk.java @@ -72,7 +72,6 @@ class AbstractFileChunk { try { sanitizedContent = this.charsetDecoder.decode(ByteBuffer.wrap(content)).toString().getBytes(); } catch (CharacterCodingException ex) { - logger.log(Level.WARNING, "Error sanitizing the " + ByteBuffer.wrap(content).toString(), ex); throw new IngesterException(NbBundle.getMessage(this.getClass(), "AbstractFileChunk.index.charCodingException.msg", parent.getSourceFile().getName()), ex); } ByteContentStream bcs = new ByteContentStream(sanitizedContent, sanitizedContent.length, parent.getSourceFile(), indexCharset);