BUG-2707 add some logging to help narrow down what part of login instance handling is going awry
parent
6b2266e9fb
commit
c19200eb00
|
|
@ -378,7 +378,7 @@ void LLApp::startErrorThread()
|
|||
//
|
||||
if(!mThreadErrorp)
|
||||
{
|
||||
llinfos << "Starting error thread" << llendl;
|
||||
// llinfos << "Starting error thread" << llendl;
|
||||
mThreadErrorp = new LLErrorThread();
|
||||
mThreadErrorp->setUserData((void *) this);
|
||||
mThreadErrorp->start();
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ void LLErrorThread::run()
|
|||
// This thread sits and waits for the sole purpose
|
||||
// of waiting for the signal/exception handlers to flag the
|
||||
// application state as APP_STATUS_ERROR.
|
||||
llinfos << "thread_error - Waiting for an error" << llendl;
|
||||
//llinfos << "thread_error - Waiting for an error" << llendl;
|
||||
|
||||
S32 counter = 0;
|
||||
#if !LL_WINDOWS
|
||||
|
|
|
|||
|
|
@ -1032,9 +1032,9 @@ LLMemoryInfo& LLMemoryInfo::refresh()
|
|||
{
|
||||
mStatsMap = loadStatsMap();
|
||||
|
||||
LL_DEBUGS("LLMemoryInfo") << "Populated mStatsMap:\n";
|
||||
LLSDSerialize::toPrettyXML(mStatsMap, LL_CONT);
|
||||
LL_ENDL;
|
||||
// LL_DEBUGS("LLMemoryInfo") << "Populated mStatsMap:\n";
|
||||
// LLSDSerialize::toPrettyXML(mStatsMap, LL_CONT);
|
||||
// LL_ENDL;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ LLDir_Win32::LLDir_Win32()
|
|||
mAppRODataDir = mExecutableDir;
|
||||
}
|
||||
|
||||
llinfos << "mAppRODataDir = " << mAppRODataDir << llendl;
|
||||
// llinfos << "mAppRODataDir = " << mAppRODataDir << llendl;
|
||||
|
||||
mSkinBaseDir = mAppRODataDir + mDirDelimiter + "skins";
|
||||
|
||||
|
|
|
|||
|
|
@ -490,7 +490,7 @@ bool LLAppViewerWin32::init()
|
|||
// (Don't send our data to Microsoft--at least until we are Logo approved and have a way
|
||||
// of getting the data back from them.)
|
||||
//
|
||||
llinfos << "Turning off Windows error reporting." << llendl;
|
||||
// llinfos << "Turning off Windows error reporting." << llendl;
|
||||
disableWinErrorReporting();
|
||||
|
||||
#ifndef LL_RELEASE_FOR_DOWNLOAD
|
||||
|
|
|
|||
|
|
@ -642,6 +642,8 @@ bool LLLoginInstance::handleLoginEvent(const LLSD& event)
|
|||
|
||||
void LLLoginInstance::handleLoginFailure(const LLSD& event)
|
||||
{
|
||||
|
||||
|
||||
// Login has failed.
|
||||
// Figure out why and respond...
|
||||
LLSD response = event["data"];
|
||||
|
|
@ -654,6 +656,8 @@ void LLLoginInstance::handleLoginFailure(const LLSD& event)
|
|||
// to reconnect or to end the attempt in failure.
|
||||
if(reason_response == "tos")
|
||||
{
|
||||
llinfos << "LLLoginInstance::handleLoginFailure ToS" << llendl;
|
||||
|
||||
LLSD data(LLSD::emptyMap());
|
||||
data["message"] = message_response;
|
||||
data["reply_pump"] = TOS_REPLY_PUMP;
|
||||
|
|
@ -666,6 +670,8 @@ void LLLoginInstance::handleLoginFailure(const LLSD& event)
|
|||
}
|
||||
else if(reason_response == "critical")
|
||||
{
|
||||
llinfos << "LLLoginInstance::handleLoginFailure Crit" << llendl;
|
||||
|
||||
LLSD data(LLSD::emptyMap());
|
||||
data["message"] = message_response;
|
||||
data["reply_pump"] = TOS_REPLY_PUMP;
|
||||
|
|
@ -687,21 +693,28 @@ void LLLoginInstance::handleLoginFailure(const LLSD& event)
|
|||
}
|
||||
else if(reason_response == "update" || gSavedSettings.getBOOL("ForceMandatoryUpdate"))
|
||||
{
|
||||
llinfos << "LLLoginInstance::handleLoginFailure update" << llendl;
|
||||
|
||||
gSavedSettings.setBOOL("ForceMandatoryUpdate", FALSE);
|
||||
updateApp(true, message_response);
|
||||
}
|
||||
else if(reason_response == "optional")
|
||||
{
|
||||
llinfos << "LLLoginInstance::handleLoginFailure optional" << llendl;
|
||||
|
||||
updateApp(false, message_response);
|
||||
}
|
||||
else
|
||||
{
|
||||
llinfos << "LLLoginInstance::handleLoginFailure attemptComplete" << llendl;
|
||||
attemptComplete();
|
||||
}
|
||||
}
|
||||
|
||||
void LLLoginInstance::handleLoginSuccess(const LLSD& event)
|
||||
{
|
||||
llinfos << "LLLoginInstance::handleLoginSuccess" << llendl;
|
||||
|
||||
if(gSavedSettings.getBOOL("ForceMandatoryUpdate"))
|
||||
{
|
||||
LLSD response = event["data"];
|
||||
|
|
@ -745,12 +758,16 @@ bool LLLoginInstance::handleTOSResponse(bool accepted, const std::string& key)
|
|||
{
|
||||
if(accepted)
|
||||
{
|
||||
llinfos << "LLLoginInstance::handleTOSResponse: accepted" << llendl;
|
||||
|
||||
// Set the request data to true and retry login.
|
||||
mRequestData["params"][key] = true;
|
||||
reconnect();
|
||||
}
|
||||
else
|
||||
{
|
||||
llinfos << "LLLoginInstance::handleTOSResponse: attemptComplete" << llendl;
|
||||
|
||||
attemptComplete();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue