diff options
Diffstat (limited to 'linden/indra/llcrashlogger/llcrashlogger.cpp')
-rwxr-xr-x | linden/indra/llcrashlogger/llcrashlogger.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/linden/indra/llcrashlogger/llcrashlogger.cpp b/linden/indra/llcrashlogger/llcrashlogger.cpp index ab464bd..ebd2303 100755 --- a/linden/indra/llcrashlogger/llcrashlogger.cpp +++ b/linden/indra/llcrashlogger/llcrashlogger.cpp | |||
@@ -119,8 +119,10 @@ void LLCrashLogger::gatherFiles() | |||
119 | updateApplication("Gathering logs..."); | 119 | updateApplication("Gathering logs..."); |
120 | 120 | ||
121 | // Figure out the filename of the debug log | 121 | // Figure out the filename of the debug log |
122 | LLString db_file_name = gDirUtilp->getExpandedFilename(LL_PATH_LOGS,"debug_info.log").c_str(); | 122 | std::string db_file_name = gDirUtilp->getExpandedFilename( |
123 | std::ifstream debug_log_file(db_file_name.c_str()); | 123 | LL_PATH_LOGS, |
124 | "debug_info.log"); | ||
125 | llifstream debug_log_file(db_file_name.c_str()); | ||
124 | 126 | ||
125 | // Look for it in the debug_info.log file | 127 | // Look for it in the debug_info.log file |
126 | if (debug_log_file.is_open()) | 128 | if (debug_log_file.is_open()) |
@@ -128,14 +130,14 @@ void LLCrashLogger::gatherFiles() | |||
128 | LLSDSerialize::fromXML(mDebugLog, debug_log_file); | 130 | LLSDSerialize::fromXML(mDebugLog, debug_log_file); |
129 | mFileMap["SecondLifeLog"] = mDebugLog["SLLog"].asString(); | 131 | mFileMap["SecondLifeLog"] = mDebugLog["SLLog"].asString(); |
130 | mFileMap["SettingsXml"] = mDebugLog["SettingsFilename"].asString(); | 132 | mFileMap["SettingsXml"] = mDebugLog["SettingsFilename"].asString(); |
131 | LLHTTPClient::setCABundle(mDebugLog["CAFilename"].asString()); | 133 | LLCurl::setCAFile(mDebugLog["CAFilename"].asString()); |
132 | llinfos << "Using log file from debug log " << mFileMap["SecondLifeLog"] << llendl; | 134 | llinfos << "Using log file from debug log " << mFileMap["SecondLifeLog"] << llendl; |
133 | llinfos << "Using settings file from debug log " << mFileMap["SettingsXml"] << llendl; | 135 | llinfos << "Using settings file from debug log " << mFileMap["SettingsXml"] << llendl; |
134 | } | 136 | } |
135 | else | 137 | else |
136 | { | 138 | { |
137 | // Figure out the filename of the second life log | 139 | // Figure out the filename of the second life log |
138 | LLHTTPClient::setCABundle(gDirUtilp->getCAFile()); | 140 | LLCurl::setCAFile(gDirUtilp->getCAFile()); |
139 | mFileMap["SecondLifeLog"] = gDirUtilp->getExpandedFilename(LL_PATH_LOGS,"SecondLife.log"); | 141 | mFileMap["SecondLifeLog"] = gDirUtilp->getExpandedFilename(LL_PATH_LOGS,"SecondLife.log"); |
140 | mFileMap["SettingsXml"] = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS,"settings.xml"); | 142 | mFileMap["SettingsXml"] = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS,"settings.xml"); |
141 | } | 143 | } |