From adb9ddce4103166e6dfe048013534c36a4a7c7e8 Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Sat, 17 Dec 2022 22:41:38 -0500 Subject: [PATCH] Include log file in crash reports --- indra/newview/llappviewerlinux.cpp | 3 +++ indra/newview/llappviewerwin32.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/indra/newview/llappviewerlinux.cpp b/indra/newview/llappviewerlinux.cpp index 9d41463e5bf..84d8bb33ca6 100644 --- a/indra/newview/llappviewerlinux.cpp +++ b/indra/newview/llappviewerlinux.cpp @@ -370,6 +370,9 @@ void LLAppViewerLinux::initCrashReporting(bool reportFreeze) std::string database_path = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "sentry"); sentry_options_set_database_path(options, database_path.c_str()); + std::string logfile_path = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "Alchemy.log"); + sentry_options_add_attachment(options, logfile_path.c_str()); + mSentryInitialized = (sentry_init(options) == 0); if (mSentryInitialized) { diff --git a/indra/newview/llappviewerwin32.cpp b/indra/newview/llappviewerwin32.cpp index c9725644112..4d5e6737660 100644 --- a/indra/newview/llappviewerwin32.cpp +++ b/indra/newview/llappviewerwin32.cpp @@ -767,6 +767,9 @@ void LLAppViewerWin32::initCrashReporting(bool reportFreeze) std::string database_path = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "sentry"); sentry_options_set_database_pathw(options, ll_convert_string_to_wide(database_path).c_str()); + std::string logfile_path = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "Alchemy.log"); + sentry_options_add_attachmentw(options, ll_convert_string_to_wide(logfile_path).c_str()); + mSentryInitialized = (sentry_init(options) == 0); if (mSentryInitialized) { -- GitLab