Revision: 40770
http://brlcad.svn.sourceforge.net/brlcad/?rev=40770&view=rev
Author: davidloman
Date: 2010-09-28 20:02:54 +0000 (Tue, 28 Sep 2010)
Log Message:
-----------
Add in debug printing.
Modified Paths:
--------------
rt^3/trunk/src/libNet/NetMsgRouter.cxx
Modified: rt^3/trunk/src/libNet/NetMsgRouter.cxx
===================================================================
--- rt^3/trunk/src/libNet/NetMsgRouter.cxx 2010-09-28 19:56:51 UTC (rev
40769)
+++ rt^3/trunk/src/libNet/NetMsgRouter.cxx 2010-09-28 20:02:54 UTC (rev
40770)
@@ -25,6 +25,7 @@
#include "NetMsgRouter.h"
#include <QtCore/QMutexLocker>
+#include "Portal.h"
NetMsgRouter* NetMsgRouter::pInstance = NULL;
@@ -57,6 +58,17 @@
//First get the appropriate list:
QList<INetMsgHandler*>* list =
this->getListOfHandlers(msg->getMsgType());
+ QString s("Got a message whos origin is Portal: ");
+ Portal* origin = msg->getOrigin();
+ if (origin != 0) {
+ s.append(origin->getRemoteNodeName());
+ } else {
+ s.append("NULL origin!");
+ }
+ s.append(" and type: ");
+ s.append(QString::number(msg->getMsgType()));
+ Logger::getInstance()->logINFO("NetMsgRouter", s);
+
for (int i = 0; i < list->length(); ++i) {
list->at(i)->handleNetMsg(msg);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits