From: Roland Häder Date: Wed, 30 Jan 2013 19:59:24 +0000 (+0000) Subject: Added more debug lines (noisy) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7f3d2e8059bb35dc6c6ad198abb8ab366d952a9c;p=hub.git Added more debug lines (noisy) --- diff --git a/application/hub/main/handler/message-types/answer/class_NodeMessageRequestNodeListAnswerHandler.php b/application/hub/main/handler/message-types/answer/class_NodeMessageRequestNodeListAnswerHandler.php index 704c2487f..24d0db998 100644 --- a/application/hub/main/handler/message-types/answer/class_NodeMessageRequestNodeListAnswerHandler.php +++ b/application/hub/main/handler/message-types/answer/class_NodeMessageRequestNodeListAnswerHandler.php @@ -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])); diff --git a/application/hub/main/handler/message-types/class_BaseMessageHandler.php b/application/hub/main/handler/message-types/class_BaseMessageHandler.php index 2063fc48e..0e6c6bfe6 100644 --- a/application/hub/main/handler/message-types/class_BaseMessageHandler.php +++ b/application/hub/main/handler/message-types/class_BaseMessageHandler.php @@ -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]);