From ee5729b69fad9e2619865322b0ac318c88acd524 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sun, 27 Apr 2014 14:05:52 +0200 Subject: [PATCH] Added debug lines + commented one noisy out. Signed-off-by: Roland Haeder --- .../hub/main/helper/dht/class_DhtBootstrapHelper.php | 6 ++++++ .../streams/raw_data/input/class_RawDataInputStream.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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)); -- 2.39.5