]> git.mxchange.org Git - core.git/commitdiff
Used self::createDebugInstance(__CLASS__)->debugOutput() instead of $fooInstance...
authorRoland Häder <roland@mxchange.org>
Wed, 13 Feb 2013 20:47:08 +0000 (20:47 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 13 Feb 2013 20:47:08 +0000 (20:47 +0000)
inc/classes/main/console/class_ConsoleTools.php
inc/classes/main/container/socket/class_SocketContainer.php

index 4987049a5c5071119998804442c914e7d59203f0..43d2503f62e1e80761fe91b1dad73d6894159c84 100644 (file)
@@ -181,13 +181,13 @@ class ConsoleTools extends BaseFrameworkSystem {
                                $ip = $helperInstance->resolveIpAddress($_SERVER['COMPUTERNAME']);
                        } else {
                                // Could not find our hostname
-                               $helperInstance->debugOutput(sprintf('[%s:] WARNING: Cannot resolve my own IP address.',
+                               self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:] WARNING: Cannot resolve my own IP address.',
                                        $helperInstance->__toString()
                                ));
                        }
                } catch (FrameworkException $e) {
                        // Output debug message
-                       $helperInstance->debugOutput(sprintf('[%s:] Problem while resolving own IP address: [%s|%s]:%s',
+                       self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:] Problem while resolving own IP address: [%s|%s]:%s',
                                $helperInstance->__toString(),
                                $e->__toString(),
                                $e->getHexCode(),
@@ -294,7 +294,7 @@ class ConsoleTools extends BaseFrameworkSystem {
 
 
                // Debug message
-               /* DEBUG: */ $helperInstance->debugOutput('CONSOLE-TOOLS: Resolved external address: ' . $externalAddress);
+               /* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('CONSOLE-TOOLS: Resolved external address: ' . $externalAddress);
 
                // Return determined external IP
                return $externalAddress;
index 13dbfb4cf344d78c3677a23a105e51f0cd9dd1b5..445a90f09be4fb6b55505bf80f11b34a2daafefb 100644 (file)
@@ -49,7 +49,7 @@ class SocketContainer extends BaseContainer implements Registerable {
                unset($packageData[NetworkPackage::PACKAGE_DATA_SIGNATURE]);
 
                // Debug message
-               //* NOISY-DEBUG: */ $containerInstance->debugOutput(__METHOD__ . ':socketResource=' . $socketResource . ',packageData='.print_r($packageData,true));
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(__METHOD__ . ':socketResource=' . $socketResource . ',packageData='.print_r($packageData,true));
 
                // Set the resource ...
                $containerInstance->setSocketResource($socketResource);