Skip to content

Commit

Permalink
Fixed verbose logging via ZoomLogger (#214)
Browse files Browse the repository at this point in the history
Currently verbose logs are sent to `Log.i`, but the message validation is still based on verbose level. So:
* With `ZoomLogger.setLogLevel(ZoomLogger.LEVEL_VERBOSE)`, all the messages are there, though they are posted as info level, so it's a bit hard to make sense of my own debug logging interleaved with these.
* With `ZoomLogger.setLogLevel(ZoomLogger.LEVEL_INFO)`, there are tons of empty `I/StateController: ` in logcat.

This PR is a simple fix for the issue.
  • Loading branch information
r4zzz4k committed Nov 24, 2021
1 parent 529d4d0 commit 254280b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/main/java/com/otaliastudios/zoom/ZoomLogger.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class ZoomLogger private constructor(private val mTag: String) {
}

internal fun v(vararg data: Any) {
i(string(LEVEL_VERBOSE, *data))
v(string(LEVEL_VERBOSE, *data))
}

internal fun i(vararg data: Any) {
Expand Down

0 comments on commit 254280b

Please sign in to comment.