Merge pull request #6222 from turbo124/v5-develop

Logging for PDFs
This commit is contained in:
David Bomba 2021-07-07 18:16:20 +10:00 committed by GitHub
commit 80b292296f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -202,10 +202,16 @@ class CreateEntityPdf implements ShouldQueue
if(!Storage::disk($this->disk)->exists($path)) if(!Storage::disk($this->disk)->exists($path))
Storage::disk($this->disk)->makeDirectory($path, 0775); Storage::disk($this->disk)->makeDirectory($path, 0775);
nlog($file_path); // nlog($file_path);
Storage::disk($this->disk)->put($file_path, $pdf); 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) catch(\Exception $e)
{ {

View File

@ -102,6 +102,7 @@ return [
'invoiceninja' => [ 'invoiceninja' => [
'driver' => 'single', 'driver' => 'single',
'level' => 'debug',
'path' => storage_path('logs/invoiceninja.log'), 'path' => storage_path('logs/invoiceninja.log'),
], ],