From 52076d0238794e0c8ada16cba20a5d2bde3676bf Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 7 Jul 2023 13:59:48 +0200 Subject: [PATCH] wip #6112 --- app/composer.json | 1 - app/src/ProcessFile.php | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/composer.json b/app/composer.json index 67ac9aa..b427218 100644 --- a/app/composer.json +++ b/app/composer.json @@ -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 diff --git a/app/src/ProcessFile.php b/app/src/ProcessFile.php index 6e4e9d8..b51a8da 100644 --- a/app/src/ProcessFile.php +++ b/app/src/ProcessFile.php @@ -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; } -- 2.39.5