kunfei hace 4 años
padre
commit
ecd533de3e
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/src/main/java/io/legado/app/constant/AppLog.kt

+ 2 - 1
app/src/main/java/io/legado/app/constant/AppLog.kt

@@ -19,7 +19,8 @@ object AppLog {
         mLogs.add(0, Triple(System.currentTimeMillis(), message, throwable))
         mLogs.add(0, Triple(System.currentTimeMillis(), message, throwable))
         if (throwable != null) {
         if (throwable != null) {
             if (BuildConfig.DEBUG) {
             if (BuildConfig.DEBUG) {
-                Log.e(message, throwable.stackTraceToString())
+                val stackTrace = Thread.currentThread().stackTrace
+                Log.e(stackTrace[3].className, message, throwable)
             }
             }
         }
         }
     }
     }