andre před 3 měsíci
rodič
revize
c92b31664e
1 změnil soubory, kde provedl 9 přidání a 0 odebrání
  1. 9 0
      app/Cron/BackupRemove.php

+ 9 - 0
app/Cron/BackupRemove.php

@@ -212,6 +212,15 @@ class BackupRemove extends Command
             }
             }
         }
         }
         $sizeMax = $this->getWhmcsConfigOption(Cloud\ConfigurableOption::BACKUPS_SIZE,  $this->configuration()->getBackupMaxSize());
         $sizeMax = $this->getWhmcsConfigOption(Cloud\ConfigurableOption::BACKUPS_SIZE,  $this->configuration()->getBackupMaxSize());
+
+                logModuleCall(
+                    'ProxmoxCloudVps',
+                    __FUNCTION__,
+                    ['used' => $fileRepository->getSizeInGb(),'max' => $sizeMax],
+                    'Debug remove Backup Cron',
+                    $params
+                );
+
         if($sizeMax && $sizeMax!="-1" && $fileRepository->getSizeInGb() > $sizeMax){
         if($sizeMax && $sizeMax!="-1" && $fileRepository->getSizeInGb() > $sizeMax){
             $this->output->writeln(sprintf("The maximum size set for a backup has been exceeded of %s GB", $fileRepository->getSizeInGb()- $sizeMax ));
             $this->output->writeln(sprintf("The maximum size set for a backup has been exceeded of %s GB", $fileRepository->getSizeInGb()- $sizeMax ));
             foreach ($fileRepository->sortByTime()->fetch() as $id => &$backup)
             foreach ($fileRepository->sortByTime()->fetch() as $id => &$backup)