浏览代码

bugfix -> debug

andre 2 年之前
父节点
当前提交
1a7e3d34b2
共有 1 个文件被更改,包括 9 次插入0 次删除
  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 {
         } else {
             $this->maxValue = $diskResource->free();
             $this->maxValue = $diskResource->free();
         }
         }
+
+        logModuleCall(
+            'ProxmoxCloudVps',
+            __FUNCTION__,
+            $this->minValue . $this->maxValue,
+            'Debug',
+            $data
+        );
+
         if ($this->maxValue > $diskResource->getMax()) {
         if ($this->maxValue > $diskResource->getMax()) {
             $this->addValidationError('PleaseProvideANumericValueBetween', false, ['minValue' => $this->minValue, 'maxValue' => $diskResource->getMax()]);
             $this->addValidationError('PleaseProvideANumericValueBetween', false, ['minValue' => $this->minValue, 'maxValue' => $diskResource->getMax()]);
             return false;
             return false;