diff options
author | Oz Linden <oz@lindenlab.com> | 2019-10-08 10:15:19 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2019-10-08 10:15:19 -0400 |
commit | 2961fea6933621fc7c8ebc692d4c517d4aa93096 (patch) | |
tree | 82f4580dab1a0f4065138e63c94381191961776b /indra/newview | |
parent | de5c07ec50d192e5a34cf710e2d1ed0c1127932f (diff) |
Rename uploaded log file to get Bugsplat to server as text/plain
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llappdelegate-objc.mm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llappdelegate-objc.mm b/indra/newview/llappdelegate-objc.mm index 30bfe1f439..ccab9173a9 100644 --- a/indra/newview/llappdelegate-objc.mm +++ b/indra/newview/llappdelegate-objc.mm @@ -301,9 +301,13 @@ struct AttachmentInfo // We "happen to know" that info[0].basename is "SecondLife.old" -- due to // the fact that BugsplatMac only notices a crash during the viewer run - // following the crash. Replace .old with .log to reduce confusion. + // following the crash. + // The Bugsplat service doesn't respect the MIME type above when returning + // the log data to a browser, so take this opportunity to rename the file + // from <base>.old to <base>_log.txt info[0].basename = - boost::filesystem::path(info[0].pathname).stem().string() + ".log"; + boost::filesystem::path(info[0].pathname).stem().string() + "_log.txt"; + infos("attachmentsForBugsplatStartupManager attaching log " + info[0].basename); NSMutableArray *attachments = [[NSMutableArray alloc] init]; |