forked from github/wulkanowy-mirror
Disable recordException in HMS (#1048)
This commit is contained in:
parent
1680ad233e
commit
3eba89aeb9
@ -3,7 +3,6 @@ package io.github.wulkanowy.utils
|
|||||||
import android.util.Log
|
import android.util.Log
|
||||||
import com.huawei.agconnect.crash.AGConnectCrash
|
import com.huawei.agconnect.crash.AGConnectCrash
|
||||||
import fr.bipi.tressence.base.FormatterPriorityTree
|
import fr.bipi.tressence.base.FormatterPriorityTree
|
||||||
import fr.bipi.tressence.common.StackTraceRecorder
|
|
||||||
import io.github.wulkanowy.sdk.exception.FeatureNotAvailableException
|
import io.github.wulkanowy.sdk.exception.FeatureNotAvailableException
|
||||||
import io.github.wulkanowy.sdk.scrapper.exception.FeatureDisabledException
|
import io.github.wulkanowy.sdk.scrapper.exception.FeatureDisabledException
|
||||||
import java.io.InterruptedIOException
|
import java.io.InterruptedIOException
|
||||||
@ -39,7 +38,9 @@ class CrashLogExceptionTree : FormatterPriorityTree(Log.ERROR) {
|
|||||||
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
|
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
|
||||||
if (skipLog(priority, tag, message, t)) return
|
if (skipLog(priority, tag, message, t)) return
|
||||||
|
|
||||||
connectCrash.setCustomKey("priority", priority)
|
// Disabled due to a bug in the Huawei library
|
||||||
|
|
||||||
|
/*connectCrash.setCustomKey("priority", priority)
|
||||||
connectCrash.setCustomKey("tag", tag.orEmpty())
|
connectCrash.setCustomKey("tag", tag.orEmpty())
|
||||||
connectCrash.setCustomKey("message", message)
|
connectCrash.setCustomKey("message", message)
|
||||||
|
|
||||||
@ -47,6 +48,6 @@ class CrashLogExceptionTree : FormatterPriorityTree(Log.ERROR) {
|
|||||||
connectCrash.recordException(t)
|
connectCrash.recordException(t)
|
||||||
} else {
|
} else {
|
||||||
connectCrash.recordException(StackTraceRecorder(format(priority, tag, message)))
|
connectCrash.recordException(StackTraceRecorder(format(priority, tag, message)))
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user