summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2015-03-20 11:27:47 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2015-03-20 11:27:47 -0400
commit81f9c81fe7caa8fceff4438a4c4b99f975c4f0de (patch)
treea5b2e0ebf9eca4b34c3ac2e506f13068359708c6
parent6fc663d62ad847a6b91029ce9576058cd01a3d68 (diff)
DRTVWR-397 WIP - ATT logging
-rwxr-xr-xindra/newview/llattachmentsmgr.cpp20
1 files changed, 14 insertions, 6 deletions
diff --git a/indra/newview/llattachmentsmgr.cpp b/indra/newview/llattachmentsmgr.cpp
index 6b8f7044cd..fa2d95a1e6 100755
--- a/indra/newview/llattachmentsmgr.cpp
+++ b/indra/newview/llattachmentsmgr.cpp
@@ -129,9 +129,9 @@ void LLAttachmentsMgr::requestAttachments(const attachments_vec_t& attachment_re
const S32 MAX_OBJECTS_TO_SEND = MAX_PACKETS_TO_SEND * OBJECTS_PER_PACKET;
if( obj_count > MAX_OBJECTS_TO_SEND )
{
- LL_WARNS() << "Too many attachments requested: " << attachment_requests.size()
+ LL_WARNS() << "ATT Too many attachments requested: " << attachment_requests.size()
<< " exceeds limit of " << MAX_OBJECTS_TO_SEND << LL_ENDL;
- LL_WARNS() << "Excess requests will be ignored" << LL_ENDL;
+ LL_WARNS() << "ATT Excess requests will be ignored" << LL_ENDL;
obj_count = MAX_OBJECTS_TO_SEND;
}
@@ -310,7 +310,9 @@ void LLAttachmentsMgr::expireOldAttachmentRequests()
++it;
if (it->second.getElapsedTimeF32() > MAX_ATTACHMENT_REQUEST_LIFETIME)
{
- LL_DEBUGS("Avatar") << "ATT expiring request for attachment item_id " << curr_it->first
+ LLInventoryItem *item = gInventory.getItem(curr_it->first);
+ LL_DEBUGS("Avatar") << "ATT expiring request for attachment "
+ << (item ? item->getName() : "UNKNOWN") << "item_id " << curr_it->first
<< " after " << MAX_ATTACHMENT_REQUEST_LIFETIME << " seconds" << LL_ENDL;
mAttachmentRequests.erase(curr_it);
}
@@ -321,6 +323,13 @@ void LLAttachmentsMgr::expireOldAttachmentRequests()
// it to the set of recently arrived items.
void LLAttachmentsMgr::onAttachmentArrived(const LLUUID& inv_item_id)
{
+ LLTimer timer;
+ if (!mAttachmentRequests.getTime(inv_item_id, timer))
+ {
+ LLInventoryItem *item = gInventory.getItem(inv_item_id);
+ LL_WARNS() << "ATT Attachment was unexpected or arrived after " << MAX_ATTACHMENT_REQUEST_LIFETIME << " seconds: "
+ << (item ? item->getName() : "UNKNOWN") << " id " << inv_item_id << LL_ENDL;
+ }
mAttachmentRequests.removeTime(inv_item_id);
if (mRecentlyArrivedAttachments.empty())
{
@@ -347,8 +356,7 @@ void LLAttachmentsMgr::onDetachCompleted(const LLUUID& inv_item_id)
}
else
{
- LL_WARNS("Avatar") << "ATT unexpected detach for "
- << (item ? item->getName() : "UNKNOWN") << " id " << inv_item_id << LL_ENDL;
+ LL_WARNS() << "ATT unexpected detach for "
+ << (item ? item->getName() : "UNKNOWN") << " id " << inv_item_id << LL_ENDL;
}
-
}