mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
change(tracing) : change how tracing is configured (ui and logic)
This commit is contained in:
+4
-4
@@ -79,7 +79,7 @@ class DefaultBugReporter @Inject constructor(
|
||||
}
|
||||
|
||||
private val logcatCommandDebug = arrayOf("logcat", "-d", "-v", "threadtime", "*:*")
|
||||
private var currentTracingFilter: String? = null
|
||||
private var currentTracingLogLevel: String? = null
|
||||
|
||||
private val logCatErrFile = File(logDirectory().absolutePath, LOG_CAT_FILENAME)
|
||||
|
||||
@@ -156,7 +156,7 @@ class DefaultBugReporter @Inject constructor(
|
||||
if (crashCallStack.isNotEmpty() && withCrashLogs) {
|
||||
builder.addFormDataPart("label", "crash")
|
||||
}
|
||||
currentTracingFilter?.let {
|
||||
currentTracingLogLevel?.let {
|
||||
builder.addFormDataPart("tracing_filter", it)
|
||||
}
|
||||
if (buildMeta.isEnterpriseBuild) {
|
||||
@@ -299,8 +299,8 @@ class DefaultBugReporter @Inject constructor(
|
||||
}
|
||||
}
|
||||
|
||||
override fun setCurrentTracingFilter(tracingFilter: String) {
|
||||
currentTracingFilter = tracingFilter
|
||||
override fun setCurrentTracingLogLevel(logLevel: String) {
|
||||
currentTracingLogLevel = logLevel
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ class FakeBugReporter(val mode: Mode = Mode.Success) : BugReporter {
|
||||
return File("fake")
|
||||
}
|
||||
|
||||
override fun setCurrentTracingFilter(tracingFilter: String) {
|
||||
override fun setCurrentTracingLogLevel(logLevel: String) {
|
||||
// No op
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user