mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Merge pull request #6546 from kellykelly3/7086-remove-statck-traces-from-exifprocessor
7086 Removed the stack trace output.
This commit is contained in:
commit
c80ec7a84d
@ -166,15 +166,10 @@ public class EXIFProcessor implements PictureProcessor {
|
|||||||
} catch (TskCoreException ex) {
|
} catch (TskCoreException ex) {
|
||||||
logger.log(Level.WARNING, "Failed to create blackboard artifact for " //NON-NLS
|
logger.log(Level.WARNING, "Failed to create blackboard artifact for " //NON-NLS
|
||||||
+ "exif metadata ({0}).", ex.getLocalizedMessage()); //NON-NLS
|
+ "exif metadata ({0}).", ex.getLocalizedMessage()); //NON-NLS
|
||||||
} catch (ImageProcessingException ex) {
|
} catch (IOException | ImageProcessingException unused) {
|
||||||
logger.log(Level.WARNING, String.format("Failed to process the image " //NON-NLS
|
// In this case the stack trace is not needed in the log.
|
||||||
+ "file '%s/%s' (id=%d).", file.getParentPath(), file.getName(), file.getId()), ex);
|
logger.log(Level.WARNING, String.format("Error parsing " //NON-NLS
|
||||||
} catch (ReadContentInputStream.ReadContentInputStreamException ex) {
|
+ "image file '%s/%s' (id=%d).", file.getParentPath(), file.getName(), file.getId())); //NON-NLS
|
||||||
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 (NoCurrentCaseException ex) {
|
} catch (NoCurrentCaseException ex) {
|
||||||
logger.log(Level.INFO, "Exception while getting open case.", ex); //NON-NLS
|
logger.log(Level.INFO, "Exception while getting open case.", ex); //NON-NLS
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user