Rewrote core:
[core.git] / inc / classes / main / console / class_ConsoleTools.php
index b82eb19e5e42fd5f3db63dc0a7377a07daaee9ee..960aaa42a926fcd412721eb60d6b32560f5a0046 100644 (file)
@@ -46,7 +46,7 @@ class ConsoleTools extends BaseFrameworkSystem {
         */
        protected function resolveIpAddress ($hostname) {
                // Debug message
-               $this->debugOutput(sprintf('[%s:] Host name to resolve is: %s',
+               self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:] Host name to resolve is: %s',
                        $this->__toString(),
                        $hostname
                ));
@@ -64,13 +64,13 @@ class ConsoleTools extends BaseFrameworkSystem {
                        $ip = $ipResolved;
 
                        // Debug message
-                       $this->debugOutput(sprintf('[%s:] Resolved IP address is: %s',
+                       self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:] Resolved IP address is: %s',
                                $this->__toString(),
                                $ip
                        ));
                } else {
                        // Problem while resolving IP address
-                       $this->debugOutput(sprintf('[%s:] Problem resolving IP address for host %s. Please check your /etc/hosts file.',
+                       self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:] Problem resolving IP address for host %s. Please check your /etc/hosts file.',
                                $this->__toString(),
                                $hostname
                        ));
@@ -123,7 +123,7 @@ class ConsoleTools extends BaseFrameworkSystem {
 
                // Add last new-line
                $proxyTunnel .= self::HTTP_EOL;
-               //* DEBUG: */ $this->debugOutput('CONSOLE-TOOLS: proxyTunnel=' . $proxyTunnel);
+               //* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('CONSOLE-TOOLS: proxyTunnel=' . $proxyTunnel);
 
                // Write request
                fwrite($socketResource, $proxyTunnel);