Skip to content

Commit 254280b

Browse files
authored
Fixed verbose logging via ZoomLogger (#214)
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.
1 parent 529d4d0 commit 254280b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/otaliastudios/zoom/ZoomLogger.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class ZoomLogger private constructor(private val mTag: String) {
5959
}
6060

6161
internal fun v(vararg data: Any) {
62-
i(string(LEVEL_VERBOSE, *data))
62+
v(string(LEVEL_VERBOSE, *data))
6363
}
6464

6565
internal fun i(vararg data: Any) {

0 commit comments

Comments
 (0)