Show username of every http request in -D output

This commit is contained in:
Alexey Sokolov
2014-04-20 15:20:39 +01:00
parent a62af5d89b
commit 66ea539165

View File

@@ -832,7 +832,7 @@ CSmartPtr<CWebSession> CWebSock::GetSession() {
Sessions.m_mspSessions.AddItem((*pSession)->GetId(), *pSession);
(*pSession)->UpdateLastActive();
m_spSession = *pSession;
DEBUG("Found existing session from cookie: [" + sCookieSessionId + "] IsLoggedIn(" + CString((*pSession)->IsLoggedIn() ? "true" : "false") + ")");
DEBUG("Found existing session from cookie: [" + sCookieSessionId + "] IsLoggedIn(" + CString((*pSession)->IsLoggedIn() ? "true, " + ((*pSession)->GetUser()->GetUserName()) : "false") + ")");
return *pSession;
}