Merge pull request #6546 from kellykelly3/7086-remove-statck-traces-from-exifprocessor

7086 Removed the stack trace output.
This commit is contained in:
Richard Cordovano 2020-12-29 11:12:28 -05:00 committed by GitHub
commit c80ec7a84d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}