add log tail to crash reports

This commit is contained in:
Vaxry 2023-03-01 15:14:35 +00:00
parent 6c250df77e
commit 52878161e4
1 changed files with 4 additions and 0 deletions

View File

@ -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)