andre 1 рік тому
батько
коміт
625f0ca42f

+ 0 - 9
core/App/Controllers/Instances/AddonController.php

@@ -72,15 +72,6 @@ abstract class AddonController implements DefaultController
         $callback = array_reverse($callback);
         $class = array_pop($callback);
         $method = array_pop($callback);
-        
-        logModuleCall(
-            'ProxmoxVps',
-            __FUNCTION__,
-            $params,
-            'debug',
-            $callback
-        );
-
         return is_string($class) &&  is_string($method) && method_exists($class, $method);
     }
 

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

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