commonMain.mu.internal.MessageInvoker.kt Maven / Gradle / Ivy
package mu.internal
@Suppress("NOTHING_TO_INLINE")
internal inline fun (() -> Any?).toStringSafe(): String {
return try {
invoke().toString()
} catch (e: Exception) {
"Log message invocation failed: $e"
}
}