]> git.mxchange.org Git - hub.git/commitdiff
Cleanup + added debug lines:
authorRoland Haeder <roland@mxchange.org>
Tue, 22 Jul 2014 21:22:36 +0000 (23:22 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 22 Jul 2014 21:22:36 +0000 (23:22 +0200)
- cleaned up no longer used paths (previously copied to 'node' wit SVN)
- added noisy debug lines to fix an error in announcement

Signed-off-by: Roland Haeder <roland@mxchange.org>
12 files changed:
application/hub/main/filter/class_BaseHubFilter.php
application/hub/main/handler/class_BaseDataHandler.php
application/hub/main/handler/message-types/announcement/class_NodeMessageAnnouncementHandler.php
application/hub/main/helper/hub/.htaccess [deleted file]
application/hub/main/helper/hub/announcement/.htaccess [deleted file]
application/hub/main/helper/hub/answer/.htaccess [deleted file]
application/hub/main/helper/hub/answer/announcement/.htaccess [deleted file]
application/hub/main/helper/hub/answer/requests/.htaccess [deleted file]
application/hub/main/helper/hub/class_ [deleted file]
application/hub/main/helper/hub/connection/.htaccess [deleted file]
application/hub/main/helper/hub/requests/.htaccess [deleted file]
application/hub/main/wrapper/node/class_NodeDistributedHashTableDatabaseWrapper.php

index 1018f6fd9285f5a1a05d0adc7bc53d61c9be1888..ea3bd006353170b5001fd907a91310355d630ccd 100644 (file)
@@ -63,7 +63,7 @@ class BaseHubFilter extends BaseFilter {
                $templateInstance->renderXmlContent($messageContent);
 
                // Debug message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(str_replace('_', '-', strtoupper($messageType)) . '-TAG: Handling ' . strlen($messageContent) . ' bytes: ' . $messageContent);
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(str_replace('_', '-', strtoupper($messageType)) . '-TAG: Handling ' . strlen($messageContent) . ' bytes: ' . $messageContent);
 
                /*
                 * The template system now stores all required data as 'general'
index 3b154ca8454b76e2e1e66f0da92a69b5ce0e656d..4c7717cd3826575533f89a7254b21a1c38d5bdf2 100644 (file)
@@ -102,7 +102,7 @@ abstract class BaseDataHandler extends BaseHandler {
         */
        protected function prepareAnswerMessage (array $messageData, Deliverable $packageInstance) {
                // Debug message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('MESSAGE-HANDLER[' . __METHOD__ . ':' . __LINE__ . ']: Going to send an answer message ...');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('MESSAGE-HANDLER[' . __METHOD__ . ':' . __LINE__ . ']: Going to send an answer message for ' . $this->getHandlerName() . ' ...');
 
                // Get a helper instance based on this handler's name
                $helperInstance = ObjectFactory::createObjectByConfiguredName('node_answer_' . $this->getHandlerName() . '_helper_class', array($messageData));
index b313071bbb3548f2427a7c66280ad80c2f11696b..684dc08011e9236cb37cb918245b8c602b79ab13 100644 (file)
@@ -125,6 +125,7 @@ class NodeMessageAnnouncementHandler extends BaseMessageHandler implements Handl
                        assert(isset($messageData[$key]));
 
                        // Add it
+                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('ANNOUNCEMENT-HANDLER[' . __METHOD__ . ':' . __LINE__ . ']: Adding messageData[' . $key . ']=' . $messageData[$key] . ' ...');
                        $dataSetInstance->addCriteria($key, $messageData[$key]);
                } // END - foreach
        }
diff --git a/application/hub/main/helper/hub/.htaccess b/application/hub/main/helper/hub/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/hub/main/helper/hub/announcement/.htaccess b/application/hub/main/helper/hub/announcement/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/hub/main/helper/hub/answer/.htaccess b/application/hub/main/helper/hub/answer/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/hub/main/helper/hub/answer/announcement/.htaccess b/application/hub/main/helper/hub/answer/announcement/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/hub/main/helper/hub/answer/requests/.htaccess b/application/hub/main/helper/hub/answer/requests/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/hub/main/helper/hub/class_ b/application/hub/main/helper/hub/class_
deleted file mode 100644 (file)
index f551ef4..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php
-// @DEPRECATED
-?>
diff --git a/application/hub/main/helper/hub/connection/.htaccess b/application/hub/main/helper/hub/connection/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/hub/main/helper/hub/requests/.htaccess b/application/hub/main/helper/hub/requests/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
index 769d854d9e2fd7f4d84ae5839d060a342e1ac017..199f68ecf48563bf4c5e99fdb40cf23d227d984b 100644 (file)
@@ -300,6 +300,8 @@ class NodeDistributedHashTableDatabaseWrapper extends BaseDatabaseWrapper implem
         * @return      void
         */
        public function registerNodeByMessageData (array $messageData, Handleable $handlerInstance) {
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DHT-WRAPPER[' . __METHOD__ . ':' . __LINE__ . ']: handlerInstance=' . $handlerInstance->__toString() . ' - CALLED!');
+
                // Get a data set instance
                $dataSetInstance = ObjectFactory::createObjectByConfiguredName('dataset_criteria_class', array(self::DB_TABLE_NODE_DHT));
 
@@ -314,6 +316,8 @@ class NodeDistributedHashTableDatabaseWrapper extends BaseDatabaseWrapper implem
 
                // Run the "INSERT" query
                $this->queryInsertDataSet($dataSetInstance);
+
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DHT-WRAPPER[' . __METHOD__ . ':' . __LINE__ . '] - EXIT!');
        }
 
        /**