mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-14 03:25:45 -07:00
crashreporter: log tag
This commit is contained in:
@@ -25,7 +25,8 @@ std::string getRandomMessage() {
|
|||||||
"*thud*",
|
"*thud*",
|
||||||
"Well this is awkward.",
|
"Well this is awkward.",
|
||||||
"\"stable\"",
|
"\"stable\"",
|
||||||
"I hope you didn't have any unsaved progress."};
|
"I hope you didn't have any unsaved progress.",
|
||||||
|
"All these computers..."};
|
||||||
|
|
||||||
std::random_device dev;
|
std::random_device dev;
|
||||||
std::mt19937 engine(dev());
|
std::mt19937 engine(dev());
|
||||||
@@ -46,7 +47,7 @@ void CrashReporter::createAndSaveCrash(int sig) {
|
|||||||
|
|
||||||
finalCrashReport += getFormat("Hyprland received signal %d (%s)\n\n", sig, strsignal(sig));
|
finalCrashReport += getFormat("Hyprland received signal %d (%s)\n\n", sig, strsignal(sig));
|
||||||
|
|
||||||
finalCrashReport += getFormat("Version: %s\n\n", GIT_COMMIT_HASH);
|
finalCrashReport += getFormat("Version: %s\nTag: %s\n\n", GIT_COMMIT_HASH, GIT_TAG);
|
||||||
|
|
||||||
if (g_pPluginSystem && !g_pPluginSystem->getAllPlugins().empty()) {
|
if (g_pPluginSystem && !g_pPluginSystem->getAllPlugins().empty()) {
|
||||||
finalCrashReport += "Hyprland seems to be running with plugins. This crash might not be Hyprland's fault.\nPlugins:\n";
|
finalCrashReport += "Hyprland seems to be running with plugins. This crash might not be Hyprland's fault.\nPlugins:\n";
|
||||||
|
Reference in New Issue
Block a user