]> git.mxchange.org Git - hub.git/commitdiff
More debug + assert added.
authorRoland Haeder <roland@mxchange.org>
Mon, 10 Feb 2014 22:02:42 +0000 (23:02 +0100)
committerRoland Haeder <roland@mxchange.org>
Mon, 10 Feb 2014 22:02:42 +0000 (23:02 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/main/database/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php
application/hub/main/dht/class_BaseDht.php

index 002e2981d937c0a92276b3cecbdcc147266cd89a..bfd0f9e5065e7319c312bf0b5623f9e26b703249 100644 (file)
@@ -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;
index 0f6dd7e550b2c378baf84aa99d325d239e731fa1..c5ef97b97d84a8d5df9686de746e8c0be18fc82e 100644 (file)
@@ -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);