summaryrefslogtreecommitdiff
path: root/src/debug/CrashReporter.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2024-01-20 09:16:27 +0100
committervaxerski <vaxry@vaxry.net>2024-01-20 09:16:27 +0100
commitf40e382fc6208d4fe2e53581ea27510cb62417dd (patch)
tree1d3043b921ef29b8b6c913d115b43a9e1480f7e2 /src/debug/CrashReporter.cpp
parentb86ed02d8ae7c955e1f42cc27a19fe18d82c50b7 (diff)
crashreporter: skip first possibly cut off line in log tail
Diffstat (limited to 'src/debug/CrashReporter.cpp')
-rw-r--r--src/debug/CrashReporter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/CrashReporter.cpp b/src/debug/CrashReporter.cpp
index 65b31399..5bc66286 100644
--- a/src/debug/CrashReporter.cpp
+++ b/src/debug/CrashReporter.cpp
@@ -119,7 +119,7 @@ void CrashReporter::createAndSaveCrash(int sig) {
finalCrashReport += "\n\nLog tail:\n";
- finalCrashReport += Debug::rollingLog;
+ finalCrashReport += Debug::rollingLog.substr(Debug::rollingLog.find("\n") + 1);
const auto HOME = getenv("HOME");
const auto CACHE_HOME = getenv("XDG_CACHE_HOME");