diff options
author | Glenn Glazer <coyot@lindenlab.com> | 2015-09-16 14:21:03 -0700 |
---|---|---|
committer | Glenn Glazer <coyot@lindenlab.com> | 2015-09-16 14:21:03 -0700 |
commit | b09f0a120e53c8b27d196df6a33a42c9ac0e146c (patch) | |
tree | ec0eb9ec35ed7a5fe62a98e1c12f272363467879 /indra/mac_crash_logger | |
parent | 1be63209331d509396bd7ee79302d511fe83d72e (diff) |
maint-5422 changes and merge from release
Diffstat (limited to 'indra/mac_crash_logger')
-rwxr-xr-x | indra/mac_crash_logger/llcrashloggermac.cpp | 3 | ||||
-rwxr-xr-x | indra/mac_crash_logger/mac_crash_logger.cpp | 11 |
2 files changed, 9 insertions, 5 deletions
diff --git a/indra/mac_crash_logger/llcrashloggermac.cpp b/indra/mac_crash_logger/llcrashloggermac.cpp index 351009814d..ed64ebdb8c 100755 --- a/indra/mac_crash_logger/llcrashloggermac.cpp +++ b/indra/mac_crash_logger/llcrashloggermac.cpp @@ -66,6 +66,7 @@ void LLCrashLoggerMac::gatherPlatformSpecificFiles() bool LLCrashLoggerMac::mainLoop() { + if (mCrashBehavior == CRASH_BEHAVIOR_ALWAYS_SEND) { gSendReport = true; @@ -82,6 +83,8 @@ bool LLCrashLoggerMac::mainLoop() 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); |