]> git.mxchange.org Git - hub.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 13 Nov 2018 23:40:46 +0000 (00:40 +0100)
committerRoland Häder <roland@mxchange.org>
Fri, 21 Aug 2020 16:50:13 +0000 (18:50 +0200)
- also output protocol name here

application/hub/classes/listener/class_BaseListenerDecorator.php

index 5be2d80f1b500477efc4ec29924c55921795fc11..293eba4ebce5b7c1d02676406b741a0898f74b4a 100644 (file)
@@ -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()) {