Răsfoiți Sursa

debug is_callable

andre 1 an în urmă
părinte
comite
1dc2ae806f

+ 0 - 16
core/App/Controllers/Instances/HttpController.php

@@ -52,14 +52,6 @@ abstract class HttpController implements DefaultController
 
         if (!$this->router->isControllerCallable() || !$this->isAdminContextValid())
         {
-            logModuleCall(
-                'ProxmoxVps',
-                __FUNCTION__,
-                $params,
-                'debug1',
-                $this->getPageNotFound()
-            );
-
             return $this->controllerResult = $this->getPageNotFound();
         }
         else
@@ -70,14 +62,6 @@ abstract class HttpController implements DefaultController
             $this->controllerResult = $this->getControllerResponse();
         }
         
-        logModuleCall(
-            'ProxmoxVps',
-            __FUNCTION__,
-            $params,
-            'debug2',
-            $this->controllerResult
-        );
-
         return $this->resolveResponse();
     }
 

+ 11 - 2
core/App/Controllers/Router.php

@@ -93,10 +93,19 @@ class Router
             return false;
         }
 
-/*        if (!is_callable([$this->controllerClass, $this->controllerMethod]))
+        if (!is_callable([$this->controllerClass, $this->controllerMethod]))
         {
+
+            logModuleCall(
+                'ProxmoxVps',
+                __FUNCTION__,
+                $this->controllerClass,
+                'debug1',
+                $this->controllerMethod
+            );
+
             return false;
-        }*/
+        }
 
         return true;
     }