mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Add the DDNet git hash and "is steam" to the crash file
Also put the date before pid for assert logs
This commit is contained in:
parent
181d831411
commit
40838bf473
|
@ -4597,7 +4597,7 @@ int main(int argc, const char **argv)
|
|||
char aBufName[IO_MAX_PATH_LENGTH];
|
||||
char aDate[64];
|
||||
str_timestamp(aDate, sizeof(aDate));
|
||||
str_format(aBufName, sizeof(aBufName), "dumps/" GAME_NAME "_crash_log_%d_%s.RTP", pid(), aDate);
|
||||
str_format(aBufName, sizeof(aBufName), "dumps/" GAME_NAME "_%s_crash_log_%s_%d_%s.RTP", CONF_PLATFORM_STRING, aDate, pid(), GIT_SHORTREV_HASH != nullptr ? GIT_SHORTREV_HASH : "");
|
||||
pStorage->GetCompletePath(IStorage::TYPE_SAVE, aBufName, aBufPath, sizeof(aBufPath));
|
||||
set_exception_handler_log_file(aBufPath);
|
||||
#endif
|
||||
|
|
|
@ -119,7 +119,7 @@ int main(int argc, const char **argv)
|
|||
char aBufName[IO_MAX_PATH_LENGTH];
|
||||
char aDate[64];
|
||||
str_timestamp(aDate, sizeof(aDate));
|
||||
str_format(aBufName, sizeof(aBufName), "dumps/" GAME_NAME "-Server_crash_log_%d_%s.RTP", pid(), aDate);
|
||||
str_format(aBufName, sizeof(aBufName), "dumps/" GAME_NAME "-Server_%s_crash_log_%s_%d_%s.RTP", CONF_PLATFORM_STRING, aDate, pid(), GIT_SHORTREV_HASH != nullptr ? GIT_SHORTREV_HASH : "");
|
||||
pStorage->GetCompletePath(IStorage::TYPE_SAVE, aBufName, aBuf, sizeof(aBuf));
|
||||
set_exception_handler_log_file(aBuf);
|
||||
#endif
|
||||
|
|
|
@ -48,7 +48,7 @@ void CAssertionLogger::Dump()
|
|||
char aAssertLogFile[IO_MAX_PATH_LENGTH];
|
||||
char aDate[64];
|
||||
str_timestamp(aDate, sizeof(aDate));
|
||||
str_format(aAssertLogFile, std::size(aAssertLogFile), "%s%s_assert_log_%d_%s.txt", m_aAssertLogPath, m_aGameName, pid(), aDate);
|
||||
str_format(aAssertLogFile, std::size(aAssertLogFile), "%s%s_assert_log_%s_%d.txt", m_aAssertLogPath, m_aGameName, aDate, pid());
|
||||
std::unique_lock<std::mutex> Lock(m_DbgMessageMutex);
|
||||
IOHANDLE FileHandle = io_open(aAssertLogFile, IOFLAG_WRITE);
|
||||
if(FileHandle)
|
||||
|
|
Loading…
Reference in a new issue