summaryrefslogtreecommitdiff
path: root/src/debug/CrashReporter.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2023-03-01 15:14:35 +0000
committervaxerski <vaxry@vaxry.net>2023-03-01 15:14:35 +0000
commit52878161e4bbe77ba9e73c44bab03d16356e36f7 (patch)
tree8919518a3eb73dd73c16811377831dbc0e35acc7 /src/debug/CrashReporter.cpp
parent6c250df77e2af7c56b1f424ea44430746160f797 (diff)
add log tail to crash reports
Diffstat (limited to 'src/debug/CrashReporter.cpp')
-rw-r--r--src/debug/CrashReporter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/debug/CrashReporter.cpp b/src/debug/CrashReporter.cpp
index 683bd951..e9a51803 100644
--- a/src/debug/CrashReporter.cpp
+++ b/src/debug/CrashReporter.cpp
@@ -122,6 +122,10 @@ void CrashReporter::createAndSaveCrash(int sig) {
free(btSymbols);
+ finalCrashReport += "\n\nLog tail:\n";
+
+ finalCrashReport += execAndGet(("cat \"" + Debug::logFile + "\" | tail -n 50").c_str());
+
const auto HOME = getenv("HOME");
if (!HOME)