Mismatched Log Tags
Mismatched Log Tags
When guarding a Log.v(tag, ...)
call with Log.isLoggable(tag)
, the tag passed to both calls should be the same. Similarly, the level passed in to Log.isLoggable
should typically match the type of Log
call, e.g. if checking level Log.DEBUG
, the corresponding Log
call should be Log.d
, not Log.i
.
Issue id: LogTagMismatch
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3 |
Plugin: | Android, 2022.3.1 Beta 2 |
Last modified: 13 July 2023