IntentCleanup: Only log if we actually did some work

Change-Id: If9041c28738b5363f491bb07053d0c34454eb76c
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/IntentCleanup.java b/core/net/src/main/java/org/onosproject/net/intent/impl/IntentCleanup.java
index 417627a..a387d6f 100644
--- a/core/net/src/main/java/org/onosproject/net/intent/impl/IntentCleanup.java
+++ b/core/net/src/main/java/org/onosproject/net/intent/impl/IntentCleanup.java
@@ -235,8 +235,10 @@
             stuckCount++;
         }
 
-        log.debug("Intent cleanup ran and resubmitted {} corrupt, {} failed, {} stuck, and {} pending intents",
-                  corruptCount, failedCount, stuckCount, pendingCount);
+        if (corruptCount + failedCount + stuckCount + pendingCount > 0) {
+            log.debug("Intent cleanup ran and resubmitted {} corrupt, {} failed, {} stuck, and {} pending intents",
+                    corruptCount, failedCount, stuckCount, pendingCount);
+        }
     }
 
     @Override