diff --git a/pass-grant-loader/src/main/java/org/eclipse/pass/support/grant/data/DifferenceLogger.java b/pass-grant-loader/src/main/java/org/eclipse/pass/support/grant/data/DifferenceLogger.java index 71fdc464..44889ab7 100644 --- a/pass-grant-loader/src/main/java/org/eclipse/pass/support/grant/data/DifferenceLogger.java +++ b/pass-grant-loader/src/main/java/org/eclipse/pass/support/grant/data/DifferenceLogger.java @@ -42,9 +42,11 @@ public class DifferenceLogger { * @param target the updated PassEntity state */ public void log(PassEntity source, PassEntity target) { - LOG.info("Updated " + source.getClass().getSimpleName() + " with ID: " + source.getId()); if (LOG.isInfoEnabled()) { List diffs = getDifference(source, target, source.getId()); + if (!diffs.isEmpty()) { + LOG.info("Updated " + source.getClass().getSimpleName() + " with ID: " + source.getId()); + } diffs.forEach(LOG::info); } }