From 2df6288aec82da9f549780241b2da8c858e2bb36 Mon Sep 17 00:00:00 2001 From: William Schaefer Date: Wed, 25 Sep 2019 13:04:42 -0400 Subject: [PATCH] 5572 improve logging for correlation attribute failure to include info about artifact --- .../centralrepository/datamodel/EamArtifactUtil.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/EamArtifactUtil.java b/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/EamArtifactUtil.java index 98914afeec..18a21d0ab6 100644 --- a/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/EamArtifactUtil.java +++ b/Core/src/org/sleuthkit/autopsy/centralrepository/datamodel/EamArtifactUtil.java @@ -211,8 +211,11 @@ public class EamArtifactUtil { TskData.FileKnown.UNKNOWN, bbSourceFile.getId()); - } catch (TskCoreException | EamDbException | CorrelationAttributeNormalizationException ex) { - logger.log(Level.SEVERE, "Error creating artifact instance.", ex); // NON-NLS + } catch (TskCoreException ex) { + logger.log(Level.SEVERE, "Error getting AbstractFile for artifact: " + bbArtifact.toString(), ex); // NON-NLS + return null; + } catch (EamDbException | CorrelationAttributeNormalizationException ex) { + logger.log(Level.WARNING, "Error creating artifact instance for artifact: " + bbArtifact.toString(), ex); // NON-NLS return null; } catch (NoCurrentCaseException ex) { logger.log(Level.SEVERE, "Case is closed.", ex); // NON-NLS