]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/recipient/upper/class_UpperRecipient.php
Added noisy debug lines, used constants defined in NetworkPackage instead of direct...
[hub.git] / application / hub / main / recipient / upper / class_UpperRecipient.php
index 408c62609bfd969fc27f52dde491deb86bbb47d9..db6cb2643742ed65e28b76958de956995ecd8845 100644 (file)
@@ -56,7 +56,8 @@ class UpperRecipient extends BaseRecipient implements Recipient {
         */
        public function resolveRecipient ($recipient, Listable $listInstance) {
                // Make sure the recipient is valid
-               assert($recipient == 'upper');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('UPPER-RECIPIENT: recipient=' . $recipient);
+               assert($recipient == NetworkPackage::PACKAGE_RECIPIENT_UPPER);
 
                // Get all bootstrap nodes
                foreach (explode(BaseHubSystem::BOOTSTRAP_NODES_SEPARATOR, $this->getConfigInstance()->getConfigEntry('hub_bootstrap_nodes')) as $ipPort) {