]> _ Git - fluidbook_processfarm.git/commitdiff
wip #6112
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 7 Jul 2023 11:59:48 +0000 (13:59 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 7 Jul 2023 11:59:48 +0000 (13:59 +0200)
app/composer.json
app/src/ProcessFile.php

index 67ac9aaceaae895039644b2f65b6c357765688d0..b427218438c423b8c71737ad9187bea1197f498e 100644 (file)
@@ -23,7 +23,6 @@
   "prefer-stable": true,
   "require": {
     "php": ">=8.2",
-    "illuminate/log": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0",
     "fluidbook/tools": "dev-master"
   }
 }
\ No newline at end of file
index 6e4e9d8cd4e70099f5d842b07a86c9f62480a4d8..b51a8dae8473ff31055d9791168226d8b687a1aa 100644 (file)
@@ -4,7 +4,6 @@ namespace Fluidbook\Farmer;
 
 use Cubist\PDF\PDFTools;
 use Cubist\Util\Files\Files;
-use Illuminate\Support\Facades\Log;
 
 class ProcessFile extends \Fluidbook\Tools\Jobs\ProcessFile {
        protected const DISTANT_ROOT = '/application/fluidbook/docs/';
@@ -137,7 +136,9 @@ class ProcessFile extends \Fluidbook\Tools\Jobs\ProcessFile {
 
        public function getPdf(): string {
                $res = Files::firstThatExists($this->getOut() . '/crop.pdf', $this->getOut() . '/fixed.pdf', $this->getOut() . '/original.pdf');
-               Log::warning('no pdf in ' . $this->getOut());
+               if(null===$res) {
+                       echo 'no pdf in ' . $this->getOut();
+               }
                return $res;
        }