Update logging

pull/3321/head
Alex Baker 10 months ago
parent 7ede174adf
commit 281d929ede

@ -63,7 +63,7 @@ abstract class BaseInvoker(
private val caller: String
get() = try {
Thread.currentThread().stackTrace[4].methodName
Thread.currentThread().stackTrace[12].methodName
} catch (e: Exception) {
Timber.e(e)
""

@ -9,6 +9,7 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import org.tasks.BuildConfig
import org.tasks.logging.LogFormatter.Companion.LINE_SEPARATOR
import timber.log.Timber
import java.io.File
@ -48,7 +49,7 @@ class FileLogger @Inject constructor(
}
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
if (priority < Log.DEBUG) {
if (!BuildConfig.DEBUG && priority < Log.DEBUG) {
return
}
val threadId = Process.myTid()

Loading…
Cancel
Save