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
No related branches found
No related tags found
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");
} }
// Replace the log file ext with .old, since the if(mCrashInPreviousExec)
// instance that launched this process has overwritten {
// SecondLife.log // Restarting after freeze.
std::string log_filename = mFileMap["SecondLifeLog"]; // Replace the log file ext with .old, since the
log_filename.replace(log_filename.size() - 4, 4, ".old"); // instance that launched this process has overwritten
mFileMap["SecondLifeLog"] = log_filename; // SecondLife.log
std::string log_filename = mFileMap["SecondLifeLog"];
log_filename.replace(log_filename.size() - 4, 4, ".old");
mFileMap["SecondLifeLog"] = log_filename;
}
gatherPlatformSpecificFiles(); gatherPlatformSpecificFiles();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment