Fix logging
Summary: typing uidebugger into ADB will hit both the log tag and any thing else such as package name. Turned Enum warning down to verbose reduce load on main thread Reviewed By: lblasa Differential Revision: D39466932 fbshipit-source-id: 0106a042a92755cf644c0e66683e7e5993e924e1
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f06f63306e
commit
721b9cd4da
@@ -19,7 +19,7 @@ import com.facebook.flipper.plugins.uidebugger.scheduler.Scheduler
|
|||||||
import kotlinx.coroutines.*
|
import kotlinx.coroutines.*
|
||||||
import kotlinx.serialization.json.Json
|
import kotlinx.serialization.json.Json
|
||||||
|
|
||||||
const val LogTag = "FlipperUIDebugger"
|
const val LogTag = "uidebugger"
|
||||||
|
|
||||||
class UIDebuggerFlipperPlugin(
|
class UIDebuggerFlipperPlugin(
|
||||||
val application: Application,
|
val application: Application,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ open class EnumMapping<T>(val mapping: Map<String, T>) {
|
|||||||
if (entry != null) {
|
if (entry != null) {
|
||||||
return entry.key
|
return entry.key
|
||||||
} else {
|
} else {
|
||||||
Log.d(
|
Log.v(
|
||||||
LogTag,
|
LogTag,
|
||||||
"Could not convert enum value ${enumValue.toString()} to string, known values ${mapping.entries}")
|
"Could not convert enum value ${enumValue.toString()} to string, known values ${mapping.entries}")
|
||||||
return NoMapping
|
return NoMapping
|
||||||
|
|||||||
Reference in New Issue
Block a user