From 9b0ef81b2ffc13a5d86bdd2bf418a12edb055193 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 15 Feb 2014 22:33:51 +0100 Subject: [PATCH 1/1] Commented out noisy debug line + logged array 'recipients'. Signed-off-by: Roland Haeder --- application/hub/main/dht/class_BaseDht.php | 4 ++-- application/hub/main/recipient/dht/class_DhtRecipient.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/hub/main/dht/class_BaseDht.php b/application/hub/main/dht/class_BaseDht.php index c5ef97b97..21b5f8d24 100644 --- a/application/hub/main/dht/class_BaseDht.php +++ b/application/hub/main/dht/class_BaseDht.php @@ -209,9 +209,9 @@ abstract class BaseDht extends BaseHubSystem { assert(is_array($entry)); // Remove any non-public data the database layer desires - /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DHT[' . $this->__toString() . ']: Calling this->getWrapperInstance()->removeNonPublicDataFromArray(data) ...'); + //* 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)); + //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DHT[' . $this->__toString() . ']: entry[]=' . gettype($entry)); // Some sanity-checks again assert(is_array($entry)); diff --git a/application/hub/main/recipient/dht/class_DhtRecipient.php b/application/hub/main/recipient/dht/class_DhtRecipient.php index 1f0bd9d33..58266fd07 100644 --- a/application/hub/main/recipient/dht/class_DhtRecipient.php +++ b/application/hub/main/recipient/dht/class_DhtRecipient.php @@ -69,7 +69,7 @@ class DhtRecipient extends BaseRecipient implements Recipient { // "Discover" recipients by given package data $recipients = $discoverInstance->resolveRecipientsByPackageData($packageData); - $this->partialStub('Please implement this method. recipient=' . $recipient); + $this->partialStub('Please implement this method. recipient=' . $recipient . ',recipients=' . print_r($recipients, TRUE)); } } -- 2.39.2