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:
Luke De Feo
2022-09-13 11:05:42 -07:00
committed by Facebook GitHub Bot
parent f06f63306e
commit 721b9cd4da
2 changed files with 2 additions and 2 deletions

View File

@@ -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,

View File

@@ -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