mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-26 09:41:57 -07:00
add log tail to crash reports
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user