diff options
| author | MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> | 2024-07-24 17:05:54 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-24 19:05:54 +0200 |
| commit | 735e3c6c56d22059ee6340c0327e4b5a9154f013 (patch) | |
| tree | 4dc74c6ce190eb4b0594fbc7f15985ffb8671073 /src/debug/CrashReporter.cpp | |
| parent | b16fb9770ca984fb4e0f44e188b0786180afb8ba (diff) | |
crashreporter: add date and flags to crash report (#7028)
modified: src/debug/CrashReporter.cpp
Diffstat (limited to 'src/debug/CrashReporter.cpp')
| -rw-r--r-- | src/debug/CrashReporter.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/debug/CrashReporter.cpp b/src/debug/CrashReporter.cpp index c25212fe..c31975b8 100644 --- a/src/debug/CrashReporter.cpp +++ b/src/debug/CrashReporter.cpp @@ -105,7 +105,19 @@ void CrashReporter::createAndSaveCrash(int sig) { finalCrashReport += GIT_COMMIT_HASH; finalCrashReport += "\nTag: "; 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) { finalCrashReport += "Hyprland seems to be running with plugins. This crash might not be Hyprland's fault.\nPlugins:\n"; |
