优化
This commit is contained in:
1 parent
23784d8751
commit
ecd533de3e
1 file changed
+2
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user