diff options
author | Aura Linden <aura@lindenlab.com> | 2013-12-04 19:57:11 -0800 |
---|---|---|
committer | Aura Linden <aura@lindenlab.com> | 2013-12-04 19:57:11 -0800 |
commit | ce2cd00cc516dbff712956875d4565b8d26e44ca (patch) | |
tree | bd704362eac5b04ae27349f3dc1728a5f00d21de /indra/win_crash_logger | |
parent | 680934812598d2c9116303f3245e7a9d60ff58bf (diff) |
Removed debugging code.
Diffstat (limited to 'indra/win_crash_logger')
-rwxr-xr-x | indra/win_crash_logger/win_crash_logger.cpp | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/indra/win_crash_logger/win_crash_logger.cpp b/indra/win_crash_logger/win_crash_logger.cpp index ede81a406e..0078559c24 100755 --- a/indra/win_crash_logger/win_crash_logger.cpp +++ b/indra/win_crash_logger/win_crash_logger.cpp @@ -30,33 +30,6 @@ #include "llcrashloggerwindows.h" #include <iostream> -//SPATTERS killme -#include <iostream> -#include <fstream> - -std::ofstream gCLOG; //SPATTERS for testing only remove ASAP. - -void flog (std::string msg) -{ - //Windows can't even write a goddamned file without fucking it up. - static bool first_time=true; - - std::cout << "Init Crash Logger" << std::endl; - static std::string logname="C:\\Users\\Aura\\AppData\\Roaming\\SecondLife\\logs\\WinCrashLog.log"; - if (first_time) - { - gCLOG.open(logname, std::fstream::out); //first time open for overwrite. - first_time = false; - gCLOG << "BEGINNING Windows Crash Report Log\n"; - } - else - gCLOG.open(logname, std::fstream::out | std::fstream::app); - - gCLOG << msg << "\n"; - gCLOG.close(); -} -//END SPATTERS KILLME - int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, @@ -78,7 +51,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, llwarns << "Unable to initialize application." << llendl; return 1; } - flog("Hi there."); + app.processingLoop(); app.mainLoop(); app.cleanup(); |