From 97ea9db59b3176c6d79ca7658326b6449ee592fc Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 7 Jul 2021 18:32:10 +1000 Subject: [PATCH] Logging for PDFs --- app/Jobs/Entity/CreateEntityPdf.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Jobs/Entity/CreateEntityPdf.php b/app/Jobs/Entity/CreateEntityPdf.php index 2d26eeb1faac..8ab5538426e3 100644 --- a/app/Jobs/Entity/CreateEntityPdf.php +++ b/app/Jobs/Entity/CreateEntityPdf.php @@ -86,8 +86,8 @@ class CreateEntityPdf implements ShouldQueue $this->contact = $invitation->contact; - //$this->disk = Ninja::isHosted() ? config('filesystems.default') : $disk; - $this->disk = $disk; + $this->disk = Ninja::isHosted() ? config('filesystems.default') : $disk; + //$this->disk = $disk; // $this->disk = $disk ?? config('filesystems.default'); } @@ -209,9 +209,11 @@ class CreateEntityPdf implements ShouldQueue $path = Storage::disk($this->disk)->path($file_path); $url = Storage::disk($this->disk)->url($file_path); + info("disk = " . $this->disk); info($path); info($url); + } catch(\Exception $e) {