diff --git a/app/src/main/java/info/nightscout/androidaps/logging/AAPSLoggerProduction.kt b/app/src/main/java/info/nightscout/androidaps/logging/AAPSLoggerProduction.kt index eba38c3dc4..a4db515dde 100644 --- a/app/src/main/java/info/nightscout/androidaps/logging/AAPSLoggerProduction.kt +++ b/app/src/main/java/info/nightscout/androidaps/logging/AAPSLoggerProduction.kt @@ -58,7 +58,7 @@ class AAPSLoggerProduction : AAPSLogger { } } -fun StackTraceElement.toLogString(): String = "[${this.className}.${this.methodName}():${this.lineNumber}]: " +fun StackTraceElement.toLogString(): String = "[${this.className.substringAfterLast(".")}.${this.methodName}():${this.lineNumber}]: " /* Needs to be inline. Don't remove even if IDE suggests it. */ private inline fun stackLogMarker() = Throwable().stackTrace[1].toLogString() \ No newline at end of file