aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2024-01-20 09:16:27 +0100
committervaxerski <[email protected]>2024-01-20 09:16:27 +0100
commitf40e382fc6208d4fe2e53581ea27510cb62417dd (patch)
tree1d3043b921ef29b8b6c913d115b43a9e1480f7e2
parentb86ed02d8ae7c955e1f42cc27a19fe18d82c50b7 (diff)
downloadHyprland-f40e382fc6208d4fe2e53581ea27510cb62417dd.tar.gz
Hyprland-f40e382fc6208d4fe2e53581ea27510cb62417dd.zip
crashreporter: skip first possibly cut off line in log tail
-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");