mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-03-12 22:36:03 -06:00
Show app build information in crash log
This commit is contained in:
parent
00122a9de5
commit
d2e914b7f0
1 changed files with 5 additions and 0 deletions
|
|
@ -9,6 +9,8 @@
|
|||
#include <boost/format.hpp>
|
||||
#include <mutex>
|
||||
|
||||
#include "libslic3r_version.h"
|
||||
|
||||
static std::string g_log_folder;
|
||||
static std::atomic<int> g_crash_log_count = 0;
|
||||
static std::mutex g_dump_mutex;
|
||||
|
|
@ -35,6 +37,9 @@ CBaseException::CBaseException(HANDLE hProcess, WORD wPID, LPCTSTR lpSymbolPath,
|
|||
auto crash_log_path = boost::filesystem::path(log_folder / buf.str()).make_preferred();
|
||||
std::string log_filename = crash_log_path.string();
|
||||
output_file->open(log_filename, std::ios::out | std::ios::app);
|
||||
|
||||
// Output app build info in crash log so we could look for the correct PDB files
|
||||
OutputString(_T("%s\n\n"), _T(SLIC3R_APP_NAME " " SoftFever_VERSION " Build " GIT_COMMIT_HASH));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue