Add name to LogBuffer threads

Bug: 221419865
Test: Ran all the tests
Change-Id: I6d10bdadc5d8d0580f6c587215fcedd1bcda3cf7
This commit is contained in:
Justin Weir
2022-05-04 11:16:36 -04:00
parent f37b7bf3fa
commit f8857a745d

View File

@@ -89,7 +89,7 @@ class LogBuffer @JvmOverloads constructor(
init {
if (logcatEchoTracker.logInBackgroundThread && echoMessageQueue != null) {
thread(start = true, priority = Thread.NORM_PRIORITY) {
thread(start = true, name = "LogBuffer-$name", priority = Thread.NORM_PRIORITY) {
try {
while (true) {
echoToDesiredEndpoints(echoMessageQueue.take())