diff options
author | Oz Linden <oz@lindenlab.com> | 2016-05-04 13:45:15 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2016-05-04 13:45:15 -0400 |
commit | 8b5a8e3b57d9ccb036c9a849a6b1ba8685c2de41 (patch) | |
tree | 627df9ca677e09ed9cc1d5e2c85b4cbb1922daf2 /indra/mac_crash_logger | |
parent | 18928ea6c6f2830a0d45ec412c915eceff1b76b0 (diff) | |
parent | 2446fab3746bfef453ec8e3d5a31b30e8f3f91e1 (diff) |
merge changes for MAINT-5974
Diffstat (limited to 'indra/mac_crash_logger')
-rwxr-xr-x | indra/mac_crash_logger/llcrashloggermac.cpp | 9 | ||||
-rwxr-xr-x | indra/mac_crash_logger/mac_crash_logger.cpp | 11 |
2 files changed, 9 insertions, 11 deletions
diff --git a/indra/mac_crash_logger/llcrashloggermac.cpp b/indra/mac_crash_logger/llcrashloggermac.cpp index 351009814d..3149fad6e8 100755 --- a/indra/mac_crash_logger/llcrashloggermac.cpp +++ b/indra/mac_crash_logger/llcrashloggermac.cpp @@ -66,22 +66,19 @@ void LLCrashLoggerMac::gatherPlatformSpecificFiles() bool LLCrashLoggerMac::mainLoop() { + if (mCrashBehavior == CRASH_BEHAVIOR_ALWAYS_SEND) { gSendReport = true; } - if(gRememberChoice) - { - if(gSendReport) saveCrashBehaviorSetting(CRASH_BEHAVIOR_ALWAYS_SEND); - else saveCrashBehaviorSetting(CRASH_BEHAVIOR_NEVER_SEND); - } - if(gSendReport) { setUserText(gUserNotes); sendCrashLogs(); } + + LL_INFOS() << "Sending of logs complete" << LL_ENDL; return true; } diff --git a/indra/mac_crash_logger/mac_crash_logger.cpp b/indra/mac_crash_logger/mac_crash_logger.cpp index d6b913829e..72f4ede999 100755 --- a/indra/mac_crash_logger/mac_crash_logger.cpp +++ b/indra/mac_crash_logger/mac_crash_logger.cpp @@ -39,16 +39,17 @@ int main(int argc, char **argv) LLSD options = LLApp::instance()->getOptionData( LLApp::PRIORITY_COMMAND_LINE); - if (!(options.has("pid") && options.has("dumpdir"))) - { - llwarns << "Insufficient parameters to crash report." << llendl; - } - if (! app.init()) { LL_WARNS() << "Unable to initialize application." << LL_ENDL; return 1; } + + if (!(options.has("pid") && options.has("dumpdir"))) + { + LL_WARNS() << "Insufficient parameters to crash report." << llendl; + } + if (app.getCrashBehavior() != CRASH_BEHAVIOR_ALWAYS_SEND) { // return NSApplicationMain(argc, (const char **)argv); |