Browse Source

debug dump datagrams on send

David Rose 21 years ago
parent
commit
ab6449b623
1 changed files with 4 additions and 0 deletions
  1. 4 0
      direct/src/distributed/ConnectionRepository.py

+ 4 - 0
direct/src/distributed/ConnectionRepository.py

@@ -352,6 +352,10 @@ class ConnectionRepository(DirectObject.DirectObject, CConnectionRepository):
         pass
         pass
 
 
     def send(self, datagram):
     def send(self, datagram):
+        if self.notify.getDebug():
+            print "ConnectionRepository sending datagram:"
+            datagram.dumpHex(ostream)
+
         self.sendDatagram(datagram)
         self.sendDatagram(datagram)