Skip to content
Snippets Groups Projects
Commit c372862a authored by Mnikolenko Productengine's avatar Mnikolenko Productengine
Browse files

MAINT-7966 Second Life viewer logs session ID in SecondLife.log

parent e848127f
No related branches found
No related tags found
No related merge requests found
...@@ -444,8 +444,6 @@ void send_stats() ...@@ -444,8 +444,6 @@ void send_stats()
LLViewerStats::instance().getRecording().pause(); LLViewerStats::instance().getRecording().pause();
body["session_id"] = gAgentSessionID;
LLSD &agent = body["agent"]; LLSD &agent = body["agent"];
time_t ltime; time_t ltime;
...@@ -598,9 +596,13 @@ void send_stats() ...@@ -598,9 +596,13 @@ void send_stats()
body["MinimalSkin"] = false; body["MinimalSkin"] = false;
LL_INFOS("LogViewerStatsPacket") << "Sending viewer statistics: " << body << LL_ENDL;
// The session ID token must never appear in logs
body["session_id"] = gAgentSessionID;
LLViewerStats::getInstance()->addToMessage(body); LLViewerStats::getInstance()->addToMessage(body);
LL_INFOS("LogViewerStatsPacket") << "Sending viewer statistics: " << body << LL_ENDL;
LLCoreHttpUtil::HttpCoroutineAdapter::messageHttpPost(url, body, LLCoreHttpUtil::HttpCoroutineAdapter::messageHttpPost(url, body,
"Statistics posted to sim", "Failed to post statistics to sim"); "Statistics posted to sim", "Failed to post statistics to sim");
LLViewerStats::instance().getRecording().resume(); LLViewerStats::instance().getRecording().resume();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment