Committed by
Gerrit Code Review
IntentCleanup: Only log if we actually did some work
Change-Id: If9041c28738b5363f491bb07053d0c34454eb76c
Showing
1 changed file
with
4 additions
and
2 deletions
... | @@ -235,8 +235,10 @@ public class IntentCleanup implements Runnable, IntentListener { | ... | @@ -235,8 +235,10 @@ public class IntentCleanup implements Runnable, IntentListener { |
235 | stuckCount++; | 235 | stuckCount++; |
236 | } | 236 | } |
237 | 237 | ||
238 | - log.debug("Intent cleanup ran and resubmitted {} corrupt, {} failed, {} stuck, and {} pending intents", | 238 | + if (corruptCount + failedCount + stuckCount + pendingCount > 0) { |
239 | - corruptCount, failedCount, stuckCount, pendingCount); | 239 | + log.debug("Intent cleanup ran and resubmitted {} corrupt, {} failed, {} stuck, and {} pending intents", |
240 | + corruptCount, failedCount, stuckCount, pendingCount); | ||
241 | + } | ||
240 | } | 242 | } |
241 | 243 | ||
242 | @Override | 244 | @Override | ... | ... |
-
Please register or login to post a comment