From: Roland Haeder Date: Sun, 27 Apr 2014 12:05:52 +0000 (+0200) Subject: Added debug lines + commented one noisy out. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ee5729b69fad9e2619865322b0ac318c88acd524;p=hub.git Added debug lines + commented one noisy out. Signed-off-by: Roland Haeder --- diff --git a/application/hub/main/helper/dht/class_DhtBootstrapHelper.php b/application/hub/main/helper/dht/class_DhtBootstrapHelper.php index 70627b69f..bc5fcafcc 100644 --- a/application/hub/main/helper/dht/class_DhtBootstrapHelper.php +++ b/application/hub/main/helper/dht/class_DhtBootstrapHelper.php @@ -82,6 +82,9 @@ class DhtBootstrapHelper extends BaseHubSystemHelper implements HelpableDht { * @return void */ public function sendPackage (Distributable $dhtInstance) { + // Debug message + /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('HELPER[' . __METHOD__ . ':' . __LINE__ . ']: CALLED!'); + /* * Sanity check: Is the DHT in the approx. state? 'init' for bootstrap * nodes and 'virgin' for all others. @@ -96,6 +99,9 @@ class DhtBootstrapHelper extends BaseHubSystemHelper implements HelpableDht { // Next, feed the content in. The network package class is a pipe-through class. $packageInstance->enqueueRawDataFromTemplate($this, NetworkPackage::PROTOCOL_TCP); + + // Debug message + /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('HELPER[' . __METHOD__ . ':' . __LINE__ . ']: EXIT!'); } } diff --git a/application/hub/main/streams/raw_data/input/class_RawDataInputStream.php b/application/hub/main/streams/raw_data/input/class_RawDataInputStream.php index df633482e..4bfda2668 100644 --- a/application/hub/main/streams/raw_data/input/class_RawDataInputStream.php +++ b/application/hub/main/streams/raw_data/input/class_RawDataInputStream.php @@ -62,7 +62,7 @@ class RawDataInputStream extends BaseStream implements InputStreamable { */ public function streamData ($data) { // Debug message - /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('RAW-INPUT-STREAM[' . __METHOD__ . ':' . __LINE__ . ': data(' . strlen($data) . ')=' . $data); + //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('RAW-INPUT-STREAM[' . __METHOD__ . ':' . __LINE__ . ': data(' . strlen($data) . ')=' . $data); // Do we have start and end marker again? assert($this->ifStartEndMarkersSet($data));