From d588d6dfd629c2da83313793750c19941da93e37 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 10 Feb 2014 23:02:42 +0100 Subject: [PATCH] More debug + assert added. Signed-off-by: Roland Haeder --- .../node/class_NodeDistributedHashTableDatabaseWrapper.php | 1 + application/hub/main/dht/class_BaseDht.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php b/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php index 002e2981d..bfd0f9e50 100644 --- a/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php +++ b/application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php @@ -502,6 +502,7 @@ class NodeDistributedHashTableDatabaseWrapper extends BaseDatabaseWrapper implem // Currently call only inner method /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DHT-WRAPPER[' . $this->__toString() . ']: Calling parent::removeNonPublicDataFromArray(data) ...'); $data = parent::removeNonPublicDataFromArray($data); + /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DHT-WRAPPER[' . $this->__toString() . ']: data[]=' . gettype($data)); // Return cleaned data return $data; diff --git a/application/hub/main/dht/class_BaseDht.php b/application/hub/main/dht/class_BaseDht.php index 0f6dd7e55..c5ef97b97 100644 --- a/application/hub/main/dht/class_BaseDht.php +++ b/application/hub/main/dht/class_BaseDht.php @@ -211,6 +211,10 @@ abstract class BaseDht extends BaseHubSystem { // Remove any non-public data the database layer desires /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DHT[' . $this->__toString() . ']: Calling this->getWrapperInstance()->removeNonPublicDataFromArray(data) ...'); $entry = $this->getWrapperInstance()->removeNonPublicDataFromArray($entry); + /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DHT[' . $this->__toString() . ']: entry[]=' . gettype($entry)); + + // Some sanity-checks again + assert(is_array($entry)); // Inject variables $this->publishHelperInstance->getTemplateInstance()->injectConfigVariables($entry); -- 2.39.5