This commit is contained in:
kunfei 2022-03-02 08:19:24 +08:00
parent c45ac07e7c
commit b7b6c44974

View File

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