summaryrefslogtreecommitdiff
path: root/indra/linux_crash_logger/linux_crash_logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/linux_crash_logger/linux_crash_logger.cpp')
-rwxr-xr-x[-rw-r--r--]indra/linux_crash_logger/linux_crash_logger.cpp25
1 files changed, 22 insertions, 3 deletions
diff --git a/indra/linux_crash_logger/linux_crash_logger.cpp b/indra/linux_crash_logger/linux_crash_logger.cpp
index 8beae555fb..36f62451d7 100644..100755
--- a/indra/linux_crash_logger/linux_crash_logger.cpp
+++ b/indra/linux_crash_logger/linux_crash_logger.cpp
@@ -24,16 +24,35 @@
* $/LicenseInfo$
*/
+#include "linden_common.h"
#include "llcrashloggerlinux.h"
+#include "llsdutil.h"
int main(int argc, char **argv)
{
+ LL_INFOS() << "Starting crash reporter." << LL_ENDL;
+
LLCrashLoggerLinux app;
app.parseCommandOptions(argc, argv);
- app.init();
+
+ LLSD options = LLApp::instance()->getOptionData(
+ LLApp::PRIORITY_COMMAND_LINE);
+ //LLApp::PRIORITY_RUNTIME_OVERRIDE);
+
+
+ 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;
+ }
+
app.mainLoop();
app.cleanup();
+ LL_INFOS() << "Crash reporter finished normally." << LL_ENDL;
return 0;
}
-
-