]> git.mxchange.org Git - hub.git/commitdiff
Added more debug lines (noisy)
authorRoland Häder <roland@mxchange.org>
Wed, 30 Jan 2013 19:59:24 +0000 (19:59 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 30 Jan 2013 19:59:24 +0000 (19:59 +0000)
application/hub/main/handler/message-types/answer/class_NodeMessageRequestNodeListAnswerHandler.php
application/hub/main/handler/message-types/class_BaseMessageHandler.php

index 704c2487f7ed7e837be1bc556acb51d56f3975ac..24d0db998ce9bc90c377de8b1eaa116ed97685f8 100644 (file)
@@ -106,8 +106,14 @@ class NodeMessageRequestNodeListAnswerHandler extends BaseMessageHandler impleme
         * @return      void
         */
        public function addArrayToDataSet (StoreableCriteria $dataSetInstance, array $messageData) {
+               // Debug message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('ANSWER-HANDLER: messageData=' . print_r($messageData, true));
+
                // Add all ements
                foreach ($this->messageDataElements as $key) {
+                       // Debug message
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('ANSWER-HANDLER: messageData[' . $key . ']=' . $messageData[$key]);
+
                        // Is it there?
                        assert(isset($messageData[$key]));
 
index 2063fc48e39379d7a9763c3ddebf3bc16f75f295..0e6c6bfe663f52b16170889d154c1ae23e87c5c7 100644 (file)
@@ -76,10 +76,16 @@ abstract class BaseMessageHandler extends BaseDataHandler {
                // Get a search criteria class
                $searchInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
 
+               // Debug message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('MESSAGE-HANDLER: messageData=' . print_r($messageData, true));
+
                // Search for the node's session id and external IP/hostname + TCP port
                foreach ($this->searchData as $key) {
                        // Debug message
-                       //* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('MESSAGE-HANDLER: messageData=' . print_r($messageData,true));
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('MESSAGE-HANDLER: messageData[' . $key . ']=' . $messageData[$key]);
+
+                       // Is it there?
+                       assert(isset($messageData[$key]));
 
                        // Add criteria
                        $searchInstance->addCriteria('node_' . str_replace('my-', '', $key), $messageData[$key]);