From dbf5e8266b28d52dc56d694bec6a1f59e27e1575 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Sun, 24 Jun 2012 08:29:42 -0300 Subject: [PATCH] Rename crash file --- .gitignore | 3 +++ src/framework/platform/unixcrashhandler.cpp | 2 +- src/framework/platform/win32crashhandler.cpp | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 4ad85d31..c7382036 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,9 @@ Makefile *~ *.kate-swap CMakeLists.txt.user* +items.xml +items.otb +*.log /modules/myconfig.otml /modules/myotclientrc.lua !.gitignore diff --git a/src/framework/platform/unixcrashhandler.cpp b/src/framework/platform/unixcrashhandler.cpp index 86f20b2e..7a653be7 100644 --- a/src/framework/platform/unixcrashhandler.cpp +++ b/src/framework/platform/unixcrashhandler.cpp @@ -104,7 +104,7 @@ void crashHandler(int signum, siginfo_t* info, void* secret) g_logger.info(ss.str()); - std::string fileName = "crash_report.txt"; + std::string fileName = "crash_report.log"; std::ofstream fout(fileName.c_str(), std::ios::out | std::ios::app); if(fout.is_open() && fout.good()) { fout << "== application crashed\n"; diff --git a/src/framework/platform/win32crashhandler.cpp b/src/framework/platform/win32crashhandler.cpp index aabe8bc8..e9be07d4 100644 --- a/src/framework/platform/win32crashhandler.cpp +++ b/src/framework/platform/win32crashhandler.cpp @@ -128,10 +128,10 @@ LONG CALLBACK ExceptionHandler(LPEXCEPTION_POINTERS e) // print in stdout g_logger.info(ss.str()); - // write stacktrace to crash_report.txt + // write stacktrace to crashreport.log char dir[MAX_PATH]; GetCurrentDirectory(sizeof(dir) - 1, dir); - std::string fileName = stdext::format("%s\\crash_report.txt", dir); + std::string fileName = stdext::format("%s\\crashreport.log", dir); std::ofstream fout(fileName.c_str(), std::ios::out | std::ios::app); if(fout.is_open() && fout.good()) { fout << ss.str();