summaryrefslogtreecommitdiff
path: root/src/debug/CrashReporter.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-11-14 20:06:04 +0000
committerVaxry <vaxry@vaxry.net>2023-11-14 20:06:04 +0000
commite195e51c1bd4b17398ec6964f30751b6a54bbb44 (patch)
tree31fc8158f4964943c90df98f02d8459fe37b321e /src/debug/CrashReporter.cpp
parente8469f8b1bb184a08351ee3cc3fcc4d0638eb90b (diff)
logging: move to an internal rolling log buffer
disables logging to the logfile by default
Diffstat (limited to 'src/debug/CrashReporter.cpp')
-rw-r--r--src/debug/CrashReporter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/CrashReporter.cpp b/src/debug/CrashReporter.cpp
index ddc52561..14aa5c5b 100644
--- a/src/debug/CrashReporter.cpp
+++ b/src/debug/CrashReporter.cpp
@@ -119,7 +119,7 @@ void CrashReporter::createAndSaveCrash(int sig) {
finalCrashReport += "\n\nLog tail:\n";
- finalCrashReport += execAndGet(("cat \"" + Debug::logFile + "\" | tail -n 50").c_str());
+ finalCrashReport += Debug::rollingLog;
const auto HOME = getenv("HOME");
const auto CACHE_HOME = getenv("XDG_CACHE_HOME");