From ae790dbd18e75ba0de543b3488d4a3aa3d7267aa Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Tue, 20 Aug 2024 21:45:41 +0200 Subject: [PATCH] Flush logs before printing crash report --- .../de/staropensource/sosengine/base/logging/CrashHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/CrashHandler.java b/base/src/main/java/de/staropensource/sosengine/base/logging/CrashHandler.java index c4f5f9f1..c9b17c41 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/CrashHandler.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/CrashHandler.java @@ -159,6 +159,7 @@ Dear developer: FIX YOUR GODDAMN SHIT! Please check if your code or 3rd party su base = Logger.getLoggerImplementation().postPlaceholder(LogLevel.CRASH, issuerClass, issuerOrigin, issuerMetadata, message, base); // Print log message by invoking LoggerImpl#print + Logger.flushLogMessages(); Logger.getLoggerImplementation().print(LogLevel.CRASH, issuerClass, issuerOrigin, issuerMetadata, message, base); // Emit event