]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/console/class_ConsoleTools.php
catch() blocks should not be left empty
[core.git] / inc / classes / main / console / class_ConsoleTools.php
index 049b29a98da8f1c9ba8d41a29a228b6977c93730..e97a5f6e5a21647bc84a530c942d5c77f4e4916c 100644 (file)
@@ -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