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