diff --git a/indra/newview/llappviewerlinux.cpp b/indra/newview/llappviewerlinux.cpp index 9d41463e5bf1303309dd90dff410af3107e40a5a..84d8bb33ca6be5e24a56db6531f3e02ec28ae81a 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 c97256441127b61fb9716af38d712d2896acce58..4d5e6737660778102a57a9239c2629d8321ef820 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) {