From 88bb73a6536207e3b46049520eb79f6923d3b53e Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 7 Jul 2021 18:15:56 +1000 Subject: [PATCH] Logging for PDFs --- app/Jobs/Entity/CreateEntityPdf.php | 8 +++++++- config/logging.php | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Jobs/Entity/CreateEntityPdf.php b/app/Jobs/Entity/CreateEntityPdf.php index 0d20f9e3a574..049920c71dda 100644 --- a/app/Jobs/Entity/CreateEntityPdf.php +++ b/app/Jobs/Entity/CreateEntityPdf.php @@ -202,10 +202,16 @@ class CreateEntityPdf implements ShouldQueue if(!Storage::disk($this->disk)->exists($path)) Storage::disk($this->disk)->makeDirectory($path, 0775); - nlog($file_path); + // nlog($file_path); Storage::disk($this->disk)->put($file_path, $pdf); + $path = Storage::disk($this->disk)->put($file_path); + $url = Storage::disk($this->disk)->url($file_path); + + info($path); + info($url); + } catch(\Exception $e) { diff --git a/config/logging.php b/config/logging.php index cfa68f0e57a7..9adace7c1ce4 100644 --- a/config/logging.php +++ b/config/logging.php @@ -102,6 +102,7 @@ return [ 'invoiceninja' => [ 'driver' => 'single', + 'level' => 'debug', 'path' => storage_path('logs/invoiceninja.log'), ],