Skip to content

Commit

Permalink
tests: reduce log spam in ChangeManager
Browse files Browse the repository at this point in the history
No point in logging a no-op in `@Before`

removes log: `D/ChangeManager: clearing 0 subscribers`
  • Loading branch information
david-allison authored and mikehardy committed Jun 27, 2024
1 parent d863396 commit 79b7a6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AnkiDroid/src/main/java/com/ichi2/libanki/ChangeManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ object ChangeManager {
}
}

@VisibleForTesting
@VisibleForTesting(otherwise = VisibleForTesting.NONE)
fun clearSubscribers() {
Timber.d("clearing %d subscribers", subscribers.size)
subscribers.size.ifNotZero { size -> Timber.d("clearing %d subscribers", size) }
subscribers.clear()
}

Expand Down

0 comments on commit 79b7a6e

Please sign in to comment.