Jonathan Hart
Committed by Gerrit Code Review

IntentCleanup: Only log if we actually did some work

Change-Id: If9041c28738b5363f491bb07053d0c34454eb76c
......@@ -235,8 +235,10 @@ public class IntentCleanup implements Runnable, IntentListener {
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
......