summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-02-22 19:51:35 -0500
committerNat Goodspeed <nat@lindenlab.com>2024-02-22 19:51:35 -0500
commit484b91dd65c8029ad5a52a6b4684d9046df709ac (patch)
tree8f0d01223a4266447dbf730e5d75aac6bd1bc7cd /indra
parent48ceae34a1dacd9305917be19868129dd47b7b1f (diff)
Add diagnostic logging to LLEventPumps::post().
If post() can't find the requested pump, say so.
Diffstat (limited to 'indra')
-rw-r--r--indra/llcommon/llevents.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llcommon/llevents.cpp b/indra/llcommon/llevents.cpp
index deb0776887..1eeb18c40d 100644
--- a/indra/llcommon/llevents.cpp
+++ b/indra/llcommon/llevents.cpp
@@ -189,8 +189,13 @@ bool LLEventPumps::post(const std::string&name, const LLSD&message)
PumpMap::iterator found = mPumpMap.find(name);
if (found == mPumpMap.end())
+ {
+ LL_DEBUGS("LLEventPumps") << "LLEventPump(" << std::quoted(name) << ") not found"
+ << LL_ENDL;
return false;
+ }
+// LL_DEBUGS("LLEventPumps") << "posting to " << name << ": " << message << LL_ENDL;
return (*found).second->post(message);
}
@@ -405,7 +410,7 @@ LLBoundListener LLEventPump::listen_impl(const std::string& name, const LLEventL
{
if (!mSignal)
{
- LL_WARNS() << "Can't connect listener" << LL_ENDL;
+ LL_WARNS("LLEventPump") << "Can't connect listener" << LL_ENDL;
// connect will fail, return dummy
return LLBoundListener();
}