Looks like LogcatWriter is intended to handle the Log class being unavailable in an Android module JVM unit test, but it's throwing UnsatisfiedLinkError, which is not a subclass of Exception which LogcatWriter catches.
|
} catch (_: Exception) { |
|
testWriter.log(severity, message, tag, throwable) |
|
} |
java.lang.UnsatisfiedLinkError: 'int android.util.Log.println_native(int, int, java.lang.String, java.lang.String)'
at android.util.Log.println_native(Native Method)
at android.util.Log.d(Log.java:172)
at co.touchlab.kermit.LogcatWriter.log(LogcatWriter.kt:28)
at co.touchlab.kermit.BaseLogger.processLog(BaseLogger.kt:55)
<snip>
Should it be changed to catch all Throwable? Or add a specific catch UnsatisfiedLinkError?
I'm on version 2.1.0
Looks like LogcatWriter is intended to handle the Log class being unavailable in an Android module JVM unit test, but it's throwing
UnsatisfiedLinkError, which is not a subclass ofExceptionwhich LogcatWriter catches.Kermit/kermit-core/src/androidMain/kotlin/co/touchlab/kermit/LogcatWriter.kt
Lines 48 to 50 in 42ff100
Should it be changed to catch all Throwable? Or add a specific catch UnsatisfiedLinkError?
I'm on version 2.1.0