]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/pools/listener/class_DefaultListenerPool.php
Opps, wrong name :(
[hub.git] / application / hub / main / pools / listener / class_DefaultListenerPool.php
index 46c62309918a6a467368e377a36dd10b9610aa49..c716b56bd868732fb62d64d1c260788329a27e3a 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -60,8 +60,8 @@ class DefaultListenerPool extends BasePool implements PoolableListener {
                parent::addInstance($listenerInstance->getProtocol(), 'listener', $listenerInstance);
 
                // Debug message
-               $this->debugOutput(
-                       'POOL: Listener ' . $listenerInstance->__toString() .
+               self::createDebugInstance(__CLASS__)->debugOutput(
+                       'POOL[' . __LINE__ . ']: Listener ' . $listenerInstance->__toString() .
                        ' listening to ' . $listenerInstance->getListenAddress() . ':' .
                        $listenerInstance->getListenPort() . ' added to listener pool.'
                );
@@ -74,7 +74,7 @@ class DefaultListenerPool extends BasePool implements PoolableListener {
         */
        public function doShutdown () {
                // Debug message
-               $this->debugOutput('POOL: Shutting down listener pool - START');
+               self::createDebugInstance(__CLASS__)->debugOutput('POOL[' . __LINE__ . ']: Shutting down listener pool - START');
 
                // Get a new visitor
                $visitorInstance = ObjectFactory::createObjectByConfiguredName('shutdown_listener_pool_visitor_class');
@@ -83,7 +83,7 @@ class DefaultListenerPool extends BasePool implements PoolableListener {
                $this->accept($visitorInstance);
 
                // Debug message
-               $this->debugOutput('POOL: Shutting down listener pool - FINISHED');
+               self::createDebugInstance(__CLASS__)->debugOutput('POOL[' . __LINE__ . ']: Shutting down listener pool - FINISHED');
        }
 }