Merge pull request #5266 from wschaeferB/5572-ImproveCorrelationAttributeLogging

5572 improve logging for correlation attribute failure to include inf…
This commit is contained in:
Richard Cordovano 2019-09-26 14:17:02 -04:00 committed by GitHub
commit 0ea6979ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,8 +211,11 @@ public class EamArtifactUtil {
TskData.FileKnown.UNKNOWN, TskData.FileKnown.UNKNOWN,
bbSourceFile.getId()); bbSourceFile.getId());
} catch (TskCoreException | EamDbException | CorrelationAttributeNormalizationException ex) { } catch (TskCoreException ex) {
logger.log(Level.SEVERE, "Error creating artifact instance.", ex); // NON-NLS 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; return null;
} catch (NoCurrentCaseException ex) { } catch (NoCurrentCaseException ex) {
logger.log(Level.SEVERE, "Case is closed.", ex); // NON-NLS logger.log(Level.SEVERE, "Case is closed.", ex); // NON-NLS