Skip to content

Commit

Permalink
Better logging for get/setCauses exception
Browse files Browse the repository at this point in the history
  • Loading branch information
allenbenz committed Apr 10, 2021
1 parent 43bc330 commit d6c622b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ public void setCauses(List<FailureCause> causes) {
try {
knowledgeBase.saveCause(cause);
} catch (Exception e) {
logger.log(Level.WARNING, null, e);
logger.log(Level.WARNING, "Failed to save cause to the knowledge base", e);
}
}
}
Expand All @@ -681,6 +681,7 @@ public Collection<FailureCause> getCauses() {
try {
return knowledgeBase.getCauses();
} catch (Exception e) {
logger.log(Level.WARNING, "Failed to get causes from the knowledge base", e);
return null;
}
}
Expand Down

0 comments on commit d6c622b

Please sign in to comment.