From e7d129875a4ccdc09f921e08fea1dccbb025b705 Mon Sep 17 00:00:00 2001
From: Nat Goodspeed <nat@lindenlab.com>
Date: Sat, 3 Mar 2012 06:28:47 -0500
Subject: [PATCH] Add a couple LLLeap DEBUG messages for incoming-events
 control flow.

---
 indra/llcommon/llleap.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/indra/llcommon/llleap.cpp b/indra/llcommon/llleap.cpp
index beb7fa8333c..34f77c3f3a4 100644
--- a/indra/llcommon/llleap.cpp
+++ b/indra/llcommon/llleap.cpp
@@ -237,6 +237,8 @@ class LLLeapImpl: public LLLeap
                 // Saw length prefix, saw colon, life is good. Now wait for
                 // that length of data to arrive.
                 mExpect = expect;
+                LL_DEBUGS("LLLeap") << "got length, waiting for "
+                                    << mExpect << " bytes of data" << LL_ENDL;
                 // Block calls to this method; resetting mBlocker unblocks
                 // calls to the other method.
                 mBlocker.reset(new LLEventPump::Blocker(mStdoutConnection));
@@ -268,6 +270,8 @@ class LLLeapImpl: public LLLeap
         if (childout.size() >= mExpect)
         {
             // Ready to rock and roll.
+            LL_DEBUGS("LLLeap") << "needed " << mExpect << " bytes, got "
+                                << childout.size() << ", parsing LLSD" << LL_ENDL;
             LLSD data;
             LLPointer<LLSDParser> parser(new LLSDNotationParser());
             S32 parse_status(parser->parse(childout.get_istream(), data, mExpect));
-- 
GitLab