mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 19:05:59 +01:00
add log tail to crash reports
This commit is contained in:
parent
6c250df77e
commit
52878161e4
1 changed files with 4 additions and 0 deletions
|
@ -122,6 +122,10 @@ void CrashReporter::createAndSaveCrash(int sig) {
|
||||||
|
|
||||||
free(btSymbols);
|
free(btSymbols);
|
||||||
|
|
||||||
|
finalCrashReport += "\n\nLog tail:\n";
|
||||||
|
|
||||||
|
finalCrashReport += execAndGet(("cat \"" + Debug::logFile + "\" | tail -n 50").c_str());
|
||||||
|
|
||||||
const auto HOME = getenv("HOME");
|
const auto HOME = getenv("HOME");
|
||||||
|
|
||||||
if (!HOME)
|
if (!HOME)
|
||||||
|
|
Loading…
Reference in a new issue