Skip to content
Snippets Groups Projects
Commit f24335d7 authored by Andrew A. de Laix's avatar Andrew A. de Laix
Browse files

Fix log file inclusion; include SecondLife.log on crash, but SecondLife.old on freeze.

parent 592ee60a
Branches
Tags
No related merge requests found
...@@ -190,12 +190,16 @@ void LLCrashLogger::gatherFiles() ...@@ -190,12 +190,16 @@ void LLCrashLogger::gatherFiles()
mFileMap["SettingsXml"] = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS,"settings.xml"); mFileMap["SettingsXml"] = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS,"settings.xml");
} }
if(mCrashInPreviousExec)
{
// Restarting after freeze.
// Replace the log file ext with .old, since the // Replace the log file ext with .old, since the
// instance that launched this process has overwritten // instance that launched this process has overwritten
// SecondLife.log // SecondLife.log
std::string log_filename = mFileMap["SecondLifeLog"]; std::string log_filename = mFileMap["SecondLifeLog"];
log_filename.replace(log_filename.size() - 4, 4, ".old"); log_filename.replace(log_filename.size() - 4, 4, ".old");
mFileMap["SecondLifeLog"] = log_filename; mFileMap["SecondLifeLog"] = log_filename;
}
gatherPlatformSpecificFiles(); gatherPlatformSpecificFiles();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment