浏览代码

add logging

andre 3 月之前
父节点
当前提交
eabe3fd14e
共有 2 个文件被更改,包括 9 次插入9 次删除
  1. 0 9
      app/Cron/BackupRemove.php
  2. 9 0
      app/Repositories/AbstractProductConfigurationRepository.php

+ 0 - 9
app/Cron/BackupRemove.php

@@ -186,15 +186,6 @@ class BackupRemove extends Command
         $whmcsParams->setParams($params);
         unset($this->vm, $this->api, $this->configuration);
         $storage        = $this->configuration()->getBackupStorage() ? $this->configuration()->getBackupStorage() : 'local';
-
-                logModuleCall(
-                    'ProxmoxCloudVps',
-                    __FUNCTION__,
-                    $storage,
-                    'Debug remove Backup Cron',
-                    $params
-                );
-
         $fileRepository = new FileRepository();
         $fileRepository->setApi($this->api());
         $fileRepository->findBackupByVmModel(VmModel::ofHostingId($params['serviceid'])->get())

+ 9 - 0
app/Repositories/AbstractProductConfigurationRepository.php

@@ -199,6 +199,15 @@ abstract class AbstractProductConfigurationRepository
                 $this->entries[$key] = ProductConfiguration::ofProductId($this->productId)
                     ->ofSetting($key)
                     ->value("value");
+
+                logModuleCall(
+                    'ProxmoxCloudVps',
+                    __FUNCTION__,
+                    $key,
+                    'Debug remove Backup Cron',
+                    $this->productId
+                );
+
                 return $this->entries[$key];
             }
         }