mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 21:06:01 +01:00
crashreporter: add date and flags to crash report (#7028)
modified: src/debug/CrashReporter.cpp
This commit is contained in:
parent
b16fb9770c
commit
735e3c6c56
1 changed files with 13 additions and 1 deletions
|
@ -105,7 +105,19 @@ void CrashReporter::createAndSaveCrash(int sig) {
|
||||||
finalCrashReport += GIT_COMMIT_HASH;
|
finalCrashReport += GIT_COMMIT_HASH;
|
||||||
finalCrashReport += "\nTag: ";
|
finalCrashReport += "\nTag: ";
|
||||||
finalCrashReport += GIT_TAG;
|
finalCrashReport += GIT_TAG;
|
||||||
finalCrashReport += "\n\n";
|
finalCrashReport += "\nDate: ";
|
||||||
|
finalCrashReport += GIT_COMMIT_DATE;
|
||||||
|
finalCrashReport += "\nFlags:\n";
|
||||||
|
#ifdef LEGACY_RENDERER
|
||||||
|
finalCrashReport += "legacyrenderer\n";
|
||||||
|
#endif
|
||||||
|
#ifndef ISDEBUG
|
||||||
|
finalCrashReport += "debug\n";
|
||||||
|
#endif
|
||||||
|
#ifdef NO_XWAYLAND
|
||||||
|
finalCrashReport += "no xwayland\n";
|
||||||
|
#endif
|
||||||
|
finalCrashReport += "\n";
|
||||||
|
|
||||||
if (g_pPluginSystem && g_pPluginSystem->pluginCount() > 0) {
|
if (g_pPluginSystem && g_pPluginSystem->pluginCount() > 0) {
|
||||||
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";
|
||||||
|
|
Loading…
Reference in a new issue