1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00

Merge pull request #6442 from turbo124/v5-develop

minor fixes
This commit is contained in:
David Bomba 2021-08-11 08:06:57 +10:00 committed by GitHub
commit 783e3bb632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,8 +33,14 @@ function nlog($output, $context = []): void
$trace = debug_backtrace();
//nlog( debug_backtrace()[1]['function']);
// \Illuminate\Support\Facades\Log::channel('invoiceninja')->info(print_r($trace[1]['class'],1), []);
if(Ninja::isHosted())
info($output);
if(Ninja::isHosted()) {
try{
info($output);
}
catch(\Exception $e){
}
}
else
\Illuminate\Support\Facades\Log::channel('invoiceninja')->info($output, $context);