andre 4 жил өмнө
parent
commit
5f792a078f

+ 28 - 0
app/Http/Actions/ChangePackage.php

@@ -123,11 +123,39 @@ class ChangePackage extends AddonController
                 }
                 }
                 //RAM
                 //RAM
                 $ram = $this->configuration()->getMemory();
                 $ram = $this->configuration()->getMemory();
+
+                logModuleCall(
+                    'proxmoxVPS',
+                    __FUNCTION__,
+                    $ram,
+                    'Debug 1',
+                    $this->get_object_vars()
+                );
+
                 Utility::unitFormat($ram, "mb", 'bytes');
                 Utility::unitFormat($ram, "mb", 'bytes');
+
                 if ($this->getWhmcsConfigOption(ConfigurableOption::MEMORY))
                 if ($this->getWhmcsConfigOption(ConfigurableOption::MEMORY))
                 {
                 {
                     $ram = $this->getWhmcsConfigOption(ConfigurableOption::MEMORY);
                     $ram = $this->getWhmcsConfigOption(ConfigurableOption::MEMORY);
+
+                    logModuleCall(
+                        'proxmoxVPS',
+                        __FUNCTION__,
+                        $ram,
+                        'Debug 2',
+                        $this->get_object_vars()
+                    );
+        
                     Utility::unitFormat($ram, $this->configuration()->getMemoryUnit(), 'bytes');
                     Utility::unitFormat($ram, $this->configuration()->getMemoryUnit(), 'bytes');
+
+                    logModuleCall(
+                        'proxmoxVPS',
+                        __FUNCTION__,
+                        $ram,
+                        'Debug 3',
+                        $this->get_object_vars()
+                    );
+
                 }
                 }
                 if ($this->configuration()->isQemu())
                 if ($this->configuration()->isQemu())
                 {
                 {