summaryrefslogtreecommitdiff
path: root/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2012-02-17 13:43:28 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2012-02-17 13:43:28 -0500
commit4e081c96895cc7b0b176ce7d9289cf8265ea2838 (patch)
tree5b855114f8274358e9e3bd31d595e94668d9a37b /indra/newview/llvoavatar.cpp
parent951f7571e8ca4b37bebe7e70926ca72b8476a3f7 (diff)
SH-2968 WIP - log avatar name in more places
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rwxr-xr-xindra/newview/llvoavatar.cpp28
1 files changed, 19 insertions, 9 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 3de9e0099b..6a372eb5b3 100755
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -774,11 +774,17 @@ LLVOAvatar::LLVOAvatar(const LLUUID& id,
mLastPelvisFixup = 0.0f;
}
+std::string LLVOAvatar::avString() const
+{
+ return " Avatar '" + getFullname() + "' ";
+}
+
void LLVOAvatar::debugAvatarRezTime(std::string notification_name, std::string comment)
{
llinfos << "REZTIME: [ " << (U32)mDebugExistenceTimer.getElapsedTimeF32()
- << "sec ] Avatar '" << getFullname()
- << "' RuthTimer " << (U32)mRuthDebugTimer.getElapsedTimeF32()
+ << "sec ]"
+ << avString()
+ << "RuthTimer " << (U32)mRuthDebugTimer.getElapsedTimeF32()
<< " Notification " << notification_name
<< " : " << comment
<< llendl;
@@ -2775,12 +2781,16 @@ void LLVOAvatar::idleUpdateLoadingEffect()
static bool first_fully_visible = true;
if (first_fully_visible)
{
- llinfos << "self isFullyLoaded, first_fully_visible" << llendl;
+ llinfos << avString() << "self isFullyLoaded, first_fully_visible" << llendl;
first_fully_visible = false;
LLAppearanceMgr::instance().onFirstFullyVisible();
}
}
+ if (isFullyLoaded() && !isSelf())
+ {
+ llinfos << avString() << "other isFullyLoaded" << llendl;
+ }
if (isFullyLoaded())
{
deleteParticleSource();
@@ -6892,7 +6902,7 @@ LLColor4 LLVOAvatar::getDummyColor()
void LLVOAvatar::dumpAvatarTEs( const std::string& context ) const
{
- llinfos << (isSelf() ? "Self: " : "Other: ") << context << llendl;
+ llinfos << avString() << (isSelf() ? "Self: " : "Other: ") << context << llendl;
for (LLVOAvatarDictionary::Textures::const_iterator iter = LLVOAvatarDictionary::getInstance()->getTextures().begin();
iter != LLVOAvatarDictionary::getInstance()->getTextures().end();
++iter)
@@ -6902,23 +6912,23 @@ void LLVOAvatar::dumpAvatarTEs( const std::string& context ) const
const LLViewerTexture* te_image = getImage(iter->first,0);
if( !te_image )
{
- llinfos << " " << texture_dict->mName << ": null ptr" << llendl;
+ llinfos << avString() << " " << texture_dict->mName << ": null ptr" << llendl;
}
else if( te_image->getID().isNull() )
{
- llinfos << " " << texture_dict->mName << ": null UUID" << llendl;
+ llinfos << avString() << " " << texture_dict->mName << ": null UUID" << llendl;
}
else if( te_image->getID() == IMG_DEFAULT )
{
- llinfos << " " << texture_dict->mName << ": IMG_DEFAULT" << llendl;
+ llinfos << avString() << " " << texture_dict->mName << ": IMG_DEFAULT" << llendl;
}
else if( te_image->getID() == IMG_DEFAULT_AVATAR )
{
- llinfos << " " << texture_dict->mName << ": IMG_DEFAULT_AVATAR" << llendl;
+ llinfos << avString() << " " << texture_dict->mName << ": IMG_DEFAULT_AVATAR" << llendl;
}
else
{
- llinfos << " " << texture_dict->mName << ": " << te_image->getID() << llendl;
+ llinfos << avString() << " " << texture_dict->mName << ": " << te_image->getID() << llendl;
}
}
}