Ver Fonte

bugfix -> debug

andre há 2 anos atrás
pai
commit
1a7e3d34b2
1 ficheiros alterados com 9 adições e 0 exclusões
  1. 9 0
      app/UI/VmCreate/Validators/DiskSizeValidator.php

+ 9 - 0
app/UI/VmCreate/Validators/DiskSizeValidator.php

@@ -41,6 +41,15 @@ class DiskSizeValidator extends BaseValidator
         } else {
             $this->maxValue = $diskResource->free();
         }
+
+        logModuleCall(
+            'ProxmoxCloudVps',
+            __FUNCTION__,
+            $this->minValue . $this->maxValue,
+            'Debug',
+            $data
+        );
+
         if ($this->maxValue > $diskResource->getMax()) {
             $this->addValidationError('PleaseProvideANumericValueBetween', false, ['minValue' => $this->minValue, 'maxValue' => $diskResource->getMax()]);
             return false;