summaryrefslogtreecommitdiff
path: root/indra/mac_crash_logger/mac_crash_logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/mac_crash_logger/mac_crash_logger.cpp')
-rw-r--r--indra/mac_crash_logger/mac_crash_logger.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/indra/mac_crash_logger/mac_crash_logger.cpp b/indra/mac_crash_logger/mac_crash_logger.cpp
index 6571b35241..4d0a7af27f 100644
--- a/indra/mac_crash_logger/mac_crash_logger.cpp
+++ b/indra/mac_crash_logger/mac_crash_logger.cpp
@@ -26,9 +26,18 @@
#include "linden_common.h"
#include "llcrashloggermac.h"
+#include "indra_constants.h"
+#include <iostream>
+#include <fstream>
+
+
int main(int argc, char **argv)
{
+ std::ofstream outputFile;
+ outputFile.open("/tmp/aura.txt");
+ outputFile << "TEstiNG" << std::endl;
+ llinfos << "SPATTERS ASDFSDFSDF" << llendl;
llinfos << "Starting crash reporter." << llendl;
LLCrashLoggerMac app;
@@ -39,9 +48,16 @@ int main(int argc, char **argv)
llwarns << "Unable to initialize application." << llendl;
return 1;
}
-
+ if (app.getCrashBehavior() != CRASH_BEHAVIOR_ALWAYS_SEND)
+ {
+
+// return NSApplicationMain(argc, (const char **)argv);
+ }
app.mainLoop();
app.cleanup();
llinfos << "Crash reporter finished normally." << llendl;
+
+ outputFile.close();
+
return 0;
}