mirror of https://github.com/hyprwm/Hyprland
add log tail to crash reports
This commit is contained in:
parent
6c250df77e
commit
52878161e4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue