diff options
author | Jacek Antonelli | 2008-08-15 23:45:24 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:24 -0500 |
commit | 0a78fa3920b32a51f01ebe7cfa30be45134f398f (patch) | |
tree | 7d0ebbf55bcb0a77c3957dd64315574281cc2f54 /linden/indra/llcrashlogger | |
parent | Second Life viewer sources 1.18.6.2-RC (diff) | |
download | meta-impy-0a78fa3920b32a51f01ebe7cfa30be45134f398f.zip meta-impy-0a78fa3920b32a51f01ebe7cfa30be45134f398f.tar.gz meta-impy-0a78fa3920b32a51f01ebe7cfa30be45134f398f.tar.bz2 meta-impy-0a78fa3920b32a51f01ebe7cfa30be45134f398f.tar.xz |
Second Life viewer sources 1.18.6.4-RC
Diffstat (limited to 'linden/indra/llcrashlogger')
-rwxr-xr-x | linden/indra/llcrashlogger/llcrashlogger.cpp | 21 | ||||
-rwxr-xr-x | linden/indra/llcrashlogger/llcrashlogger.h | 2 |
2 files changed, 17 insertions, 6 deletions
diff --git a/linden/indra/llcrashlogger/llcrashlogger.cpp b/linden/indra/llcrashlogger/llcrashlogger.cpp index 01e9901..d53e684 100755 --- a/linden/indra/llcrashlogger/llcrashlogger.cpp +++ b/linden/indra/llcrashlogger/llcrashlogger.cpp | |||
@@ -1,10 +1,10 @@ | |||
1 | /** | 1 | /** |
2 | * @file llcrashlogger.cpp | 2 | * @file llcrashlogger.cpp |
3 | * @brief Crash logger implementation | 3 | * @brief Crash logger implementation |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2003&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2003&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2003-2007, Linden Research, Inc. | 7 | * Copyright (c) 2003-2008, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -144,9 +144,18 @@ void LLCrashLogger::gatherFiles() | |||
144 | mCrashHost = "https://"; | 144 | mCrashHost = "https://"; |
145 | mCrashHost += mDebugLog["CurrentSimHost"].asString(); | 145 | mCrashHost += mDebugLog["CurrentSimHost"].asString(); |
146 | mCrashHost += ":12043/crash/report"; | 146 | mCrashHost += ":12043/crash/report"; |
147 | mAltCrashHost = "https://"; | 147 | // Use login servers as the alternate, since they are already load balanced and have a known name |
148 | mAltCrashHost += mDebugLog["GridUtilHost"].asString(); | 148 | // First, check to see if we have a valid grid name. If not, use agni. |
149 | mAltCrashHost += ":12043/crash/report"; | 149 | mAltCrashHost = "https://login."; |
150 | if(mDebugLog["GridName"].asString() != "") | ||
151 | { | ||
152 | mAltCrashHost += mDebugLog["GridName"].asString(); | ||
153 | } | ||
154 | else | ||
155 | { | ||
156 | mAltCrashHost += "agni"; | ||
157 | } | ||
158 | mAltCrashHost += ".lindenlab.com:12043/crash/report"; | ||
150 | 159 | ||
151 | mCrashInfo["DebugLog"] = mDebugLog; | 160 | mCrashInfo["DebugLog"] = mDebugLog; |
152 | mFileMap["StatsLog"] = gDirUtilp->getExpandedFilename(LL_PATH_LOGS,"stats.log"); | 161 | mFileMap["StatsLog"] = gDirUtilp->getExpandedFilename(LL_PATH_LOGS,"stats.log"); |
@@ -240,6 +249,8 @@ bool LLCrashLogger::sendCrashLogs() | |||
240 | updateApplication("Sending logs to Alternate Server..."); | 249 | updateApplication("Sending logs to Alternate Server..."); |
241 | } | 250 | } |
242 | } | 251 | } |
252 | |||
253 | |||
243 | mSentCrashLogs = gSent; | 254 | mSentCrashLogs = gSent; |
244 | 255 | ||
245 | return true; | 256 | return true; |
diff --git a/linden/indra/llcrashlogger/llcrashlogger.h b/linden/indra/llcrashlogger/llcrashlogger.h index f797a2f..73d6884 100755 --- a/linden/indra/llcrashlogger/llcrashlogger.h +++ b/linden/indra/llcrashlogger/llcrashlogger.h | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2003&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2003&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2003-2007, Linden Research, Inc. | 7 | * Copyright (c) 2003-2008, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |