X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fconsole%2Fclass_ConsoleTools.php;h=e97a5f6e5a21647bc84a530c942d5c77f4e4916c;hp=049b29a98da8f1c9ba8d41a29a228b6977c93730;hb=5bf22e282d21c7490625fc0e54bc0cd23679cfa7;hpb=0cd57c3885f00ad77fc599e53ed2f2d5e7ac267f diff --git a/inc/classes/main/console/class_ConsoleTools.php b/inc/classes/main/console/class_ConsoleTools.php index 049b29a9..e97a5f6e 100644 --- a/inc/classes/main/console/class_ConsoleTools.php +++ b/inc/classes/main/console/class_ConsoleTools.php @@ -37,7 +37,7 @@ class ConsoleTools extends BaseFrameworkSystem { * * @return $ip The resolved IP address */ - public static function aquireSelfIPAddress () { + public static function acquireSelfIPAddress () { // Local IP by default $ip = "127.0.0.1"; @@ -71,7 +71,13 @@ class ConsoleTools extends BaseFrameworkSystem { )); } } catch (FrameworkException $e) { - // Do nothing here + // Output debug message + $helper->debugOutput(sprintf("[%s:] Problem while resolving own IP address: [%s|%s]:%s", + $helper->__toString(), + $e->__toString(), + $e->getHexCode(), + $e->getMessage() + )); } // Return the IP address