|
|
|
|
@ -11,6 +11,7 @@ import kotlinx.coroutines.launch
|
|
|
|
|
import kotlinx.coroutines.withContext
|
|
|
|
|
import org.tasks.BuildConfig
|
|
|
|
|
import org.tasks.logging.LogFormatter.Companion.LINE_SEPARATOR
|
|
|
|
|
import org.tasks.preferences.Device
|
|
|
|
|
import timber.log.Timber
|
|
|
|
|
import java.io.File
|
|
|
|
|
import java.io.FileInputStream
|
|
|
|
|
@ -80,6 +81,9 @@ class FileLogger @Inject constructor(
|
|
|
|
|
} catch (e: IOException) {
|
|
|
|
|
Timber.e(e, "Failed to save logcat")
|
|
|
|
|
}
|
|
|
|
|
zos.putNextEntry(ZipEntry("device.txt"))
|
|
|
|
|
zos.write(Device(context).debugInfo.toByteArray())
|
|
|
|
|
zos.closeEntry()
|
|
|
|
|
fileHandler.flush()
|
|
|
|
|
logDirectory
|
|
|
|
|
.listFiles { _, name -> name?.endsWith(".txt") == true }
|
|
|
|
|
|