]> git.mxchange.org Git - hub.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 12 Aug 2021 14:14:47 +0000 (16:14 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 12 Aug 2021 14:14:47 +0000 (16:14 +0200)
- added logging of socketType class field
- added some noisy debug lines

Signed-off-by: Roland Häder <roland@mxchange.org>
application/hub/classes/container/socket/class_SocketContainer.php
application/hub/classes/handler/package/class_NetworkPackageHandler.php

index 1cc0d983856d75d4dffc3ceecd811eb888d2b7bf..c2bb5944537c54b0fdede3b69e31869ec35503da 100644 (file)
@@ -195,9 +195,10 @@ class SocketContainer extends BaseHubContainer implements StorableSocket, Visita
 
                // Get current package data
                $packageInstance = $this->getPackageDataInstance();
+               //* DEBUG-DIE: */ if ($this->getSocketType() == StorableSocket::CONNECTION_TYPE_INCOMING) { die(sprintf('[%s:%d]: packageInstance=%s', __METHOD__, __LINE__, print_r($packageInstance, TRUE))); }
 
                // So, does both match?
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-SOCKET: packageInstance->recipientUnl=%s', strtoupper($this->getSocketProtocol()), $packageInstance->getRecipientUnl()));
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-SOCKET: this->socketType=%s,packageInstance->recipientUnl=%s', strtoupper($this->getSocketProtocol()), $this->getSocketType(), $packageInstance->getRecipientUnl()));
                //* PRINTR-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(strtoupper($this->getSocketProtocol()) . '-SOCKET: unl=' . $unl . ',packageInstance=' . print_r($packageInstance, true));
                $matches = (!empty($packageInstance->getRecipientUnl()) && $packageInstance->getRecipientUnl() === $unl);
 
index 5c83d26d47e42e685f22a341ad07ffe601e4ad0f..7b7cfda876b60124daafe9b69e575e95650a3829 100644 (file)
@@ -721,6 +721,7 @@ class NetworkPackageHandler extends BaseHubHandler implements Deliverable, Recei
                $infoInstance = $this->getRegistryInstance()->getInfoInstanceFromPackageInstance($packageInstance);
 
                // Test helper instance
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('NETWORK-PACKAGE-HANDLER: infoInstance[]=%s', gettype($infoInstance)));
                if (is_null($infoInstance)) {
                        // Throw NPE
                        throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);