From: Roland Haeder Date: Mon, 10 Feb 2014 22:02:42 +0000 (+0100) Subject: More debug + assert added. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d588d6dfd629c2da83313793750c19941da93e37;p=hub.git More debug + assert added. Signed-off-by: Roland Haeder --- 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);