pull/1319/head
gedoor 3 years ago
parent 0c0525722a
commit ac668a1233
  1. 2
      app/src/main/java/io/legado/app/constant/AppLog.kt

@ -7,7 +7,7 @@ object AppLog {
@Synchronized @Synchronized
fun addLog(message: String?, throwable: Throwable?) { fun addLog(message: String?, throwable: Throwable?) {
message ?: return message ?: return
if (logs.size > 1000) { if (logs.size > 100) {
logs.removeLastOrNull() logs.removeLastOrNull()
} }
logs.add(0, Triple(System.currentTimeMillis(), message, throwable)) logs.add(0, Triple(System.currentTimeMillis(), message, throwable))

Loading…
Cancel
Save