From 7f3d2e8059bb35dc6c6ad198abb8ab366d952a9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 30 Jan 2013 19:59:24 +0000 Subject: [PATCH] Added more debug lines (noisy) --- .../class_NodeMessageRequestNodeListAnswerHandler.php | 6 ++++++ .../handler/message-types/class_BaseMessageHandler.php | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) 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]); -- 2.39.5