From 3ba3d9b444b018372c03b7dd84c0a2cff2edace3 Mon Sep 17 00:00:00 2001 From: Kelly Kelly Date: Fri, 11 Dec 2020 13:14:01 -0500 Subject: [PATCH] Removed the stack trace output. --- .../pictureanalyzer/impls/EXIFProcessor.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/modules/pictureanalyzer/impls/EXIFProcessor.java b/Core/src/org/sleuthkit/autopsy/modules/pictureanalyzer/impls/EXIFProcessor.java index 5a48fcf7bf..3dbe2c7360 100755 --- a/Core/src/org/sleuthkit/autopsy/modules/pictureanalyzer/impls/EXIFProcessor.java +++ b/Core/src/org/sleuthkit/autopsy/modules/pictureanalyzer/impls/EXIFProcessor.java @@ -166,15 +166,10 @@ public class EXIFProcessor implements PictureProcessor { } catch (TskCoreException ex) { logger.log(Level.WARNING, "Failed to create blackboard artifact for " //NON-NLS + "exif metadata ({0}).", ex.getLocalizedMessage()); //NON-NLS - } catch (ImageProcessingException ex) { - logger.log(Level.WARNING, String.format("Failed to process the image " //NON-NLS - + "file '%s/%s' (id=%d).", file.getParentPath(), file.getName(), file.getId()), ex); - } catch (ReadContentInputStream.ReadContentInputStreamException ex) { - logger.log(Level.WARNING, String.format("Error while trying to read " //NON-NLS - + "image file '%s/%s' (id=%d).", file.getParentPath(), file.getName(), file.getId()), ex); //NON-NLS - } catch (IOException ex) { - logger.log(Level.WARNING, String.format("IOException when parsing " //NON-NLS - + "image file '%s/%s' (id=%d).", file.getParentPath(), file.getName(), file.getId()), ex); //NON-NLS + } catch (IOException | ImageProcessingException unused) { + // In this case the stack trace is not needed in the log. + logger.log(Level.WARNING, String.format("Error parsing " //NON-NLS + + "image file '%s/%s' (id=%d).", file.getParentPath(), file.getName(), file.getId())); //NON-NLS } catch (NoCurrentCaseException ex) { logger.log(Level.INFO, "Exception while getting open case.", ex); //NON-NLS }