diff options
| author | Glenn Glazer <coyot@lindenlab.com> | 2015-12-16 14:45:03 -0800 | 
|---|---|---|
| committer | Glenn Glazer <coyot@lindenlab.com> | 2015-12-16 14:45:03 -0800 | 
| commit | cc79b5663f479895f121c07f3797ea276c844a94 (patch) | |
| tree | 4ef5cd7355027b4e67f89bdb113c1c1c652f788b /indra | |
| parent | 84150294b912d04e345007b65670c0230a2e4d79 (diff) | |
MAINT-5974: change URL creation
Diffstat (limited to 'indra')
| -rwxr-xr-x | indra/llcrashlogger/llcrashlogger.cpp | 36 | 
1 files changed, 14 insertions, 22 deletions
| diff --git a/indra/llcrashlogger/llcrashlogger.cpp b/indra/llcrashlogger/llcrashlogger.cpp index 7a97c16ea7..0c5bbf2fdf 100755 --- a/indra/llcrashlogger/llcrashlogger.cpp +++ b/indra/llcrashlogger/llcrashlogger.cpp @@ -233,31 +233,23 @@ void LLCrashLogger::gatherFiles()  	gatherPlatformSpecificFiles(); -	//Use the debug log to reconstruct the URL to send the crash report to -	if(mDebugLog.has("CrashHostUrl")) -	{ -		// Crash log receiver has been manually configured. -		mCrashHost = mDebugLog["CrashHostUrl"].asString(); -	} -	else if(mDebugLog.has("CurrentSimHost")) -	{ -		mCrashHost = "https://"; -		mCrashHost += mDebugLog["CurrentSimHost"].asString(); -		mCrashHost += ":12043/crash/report"; -	} -	else if(mDebugLog.has("GridName")) -	{ -		// This is a 'little' hacky, but its the best simple solution. -		std::string grid_host = mDebugLog["GridName"].asString(); -		LLStringUtil::toLower(grid_host); +    //Construct crash report URL +    //CNAMES for the VIPs are viewercrashreport.{agni, damballah}.lindenlab.com +    std::string grid = mDebugLog["GridName"].asString(); +    LLStringUtil::toLower(grid); +    if(grid == "agni") +    { +        mCrashHost = "https://viewercrashreport.agni.lindenlab.com/cgi-bin/viewercrashreceiver.py"; + +    } +    else +    { +        mCrashHost = "https://viewercrashreport.damballah.lindenlab.com/cgi-bin/viewercrashreceiver.py"; +    } -		mCrashHost = "https://login."; -		mCrashHost += grid_host; -		mCrashHost += ".lindenlab.com:12043/crash/report"; -	}  	// Use login servers as the alternate, since they are already load balanced and have a known name -	mAltCrashHost = "https://login.agni.lindenlab.com:12043/crash/report"; +	mAltCrashHost = mCrashHost;  	mCrashInfo["DebugLog"] = mDebugLog;  	mFileMap["StatsLog"] = gDirUtilp->getExpandedFilename(LL_PATH_DUMP,"stats.log"); | 
