diff options
author | Merov Linden <merov@lindenlab.com> | 2012-11-14 20:00:01 -0800 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2012-11-14 20:00:01 -0800 |
commit | bd62d1d33717536e71f5fbb5ab4a477a69494c77 (patch) | |
tree | cf9d425714c4d7b5a75fbdde387b871b6f33fce6 /indra/newview/llconversationmodel.cpp | |
parent | a5d6375dd9faf5a39f0320ed31073e157534761a (diff) |
CHUI-479 : WIP : More tracing
Diffstat (limited to 'indra/newview/llconversationmodel.cpp')
-rw-r--r-- | indra/newview/llconversationmodel.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/indra/newview/llconversationmodel.cpp b/indra/newview/llconversationmodel.cpp index 8aa740e5d1..1c56bd672d 100644 --- a/indra/newview/llconversationmodel.cpp +++ b/indra/newview/llconversationmodel.cpp @@ -349,15 +349,21 @@ const bool LLConversationItemSession::getTime(F64& time) const return has_time; } -void LLConversationItemSession::dumpDebugData() +void LLConversationItemSession::dumpDebugData(bool dump_children) { + // Session info llinfos << "Merov debug : session " << this << ", uuid = " << mUUID << ", name = " << mName << ", is loaded = " << mIsLoaded << llendl; - LLConversationItemParticipant* participant = NULL; - child_list_t::iterator iter; - for (iter = mChildren.begin(); iter != mChildren.end(); iter++) + // Children info + if (dump_children) { - participant = dynamic_cast<LLConversationItemParticipant*>(*iter); - participant->dumpDebugData(); + for (child_list_t::iterator iter = mChildren.begin(); iter != mChildren.end(); iter++) + { + LLConversationItemParticipant* participant = dynamic_cast<LLConversationItemParticipant*>(*iter); + if (participant) + { + participant->dumpDebugData(); + } + } } } |