add log tail to crash reports

This commit is contained in:
Vaxry 2023-03-01 15:14:35 +00:00
parent 6c250df77e
commit 52878161e4

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)