From: Roland Häder Date: Tue, 13 Nov 2018 23:40:46 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c497f8e7f9a91fd7a519c336853bc91bdf09af35;p=hub.git Continued: - also output protocol name here --- diff --git a/application/hub/classes/listener/class_BaseListenerDecorator.php b/application/hub/classes/listener/class_BaseListenerDecorator.php index 5be2d80f1..293eba4eb 100644 --- a/application/hub/classes/listener/class_BaseListenerDecorator.php +++ b/application/hub/classes/listener/class_BaseListenerDecorator.php @@ -118,13 +118,13 @@ abstract class BaseListenerDecorator extends BaseDecorator implements Visitable */ public function accept (Visitor $visitorInstance) { // Trace message - //* NOSY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER-DECORATOR: visitorInstance=%s - CALLED!', $visitorInstance->__toString())); + //* NOSY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER-DECORATOR: visitorInstance=%s - CALLED!', strtoupper($this->getProtocolName()), $visitorInstance->__toString())); // Visit this decorator $visitorInstance->visitDecorator($this); // Trace message - //* NOSY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER-DECORATOR: Calling visitorInstance->visitListener(%s) ...', $this->getListenerInstance()->__toString())); + //* NOSY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER-DECORATOR: Calling visitorInstance->visitListener(%s) ...', strtoupper($this->getProtocolName()), $this->getListenerInstance()->__toString())); // Visit the covered class $visitorInstance->visitListener($this->getListenerInstance()); @@ -159,7 +159,7 @@ abstract class BaseListenerDecorator extends BaseDecorator implements Visitable */ public final function getPoolInstance () { // Trace message - //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER-DECORATOR: Getting poolInstance from inner listenerInstance=%s - CALLED!', $this->getListenerInstance()->__toString())); + //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER-DECORATOR: Getting poolInstance from inner listenerInstance=%s - CALLED!', strtoupper($this->getProtocolName()), $this->getListenerInstance()->__toString())); // Get it return $this->getListenerInstance()->getPoolInstance(); @@ -193,7 +193,7 @@ abstract class BaseListenerDecorator extends BaseDecorator implements Visitable } // Debug message - /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('LISTENER-DECORATOR: handlerInstance=%s', $handlerInstance->__toString())); + /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER-DECORATOR: handlerInstance=%s', strtoupper($this->getProtocolName()), $handlerInstance->__toString())); // Does the handler have some decoded data pending? if (!$handlerInstance->isRawDataPending()) {