1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01: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(); $trace = debug_backtrace();
//nlog( debug_backtrace()[1]['function']); //nlog( debug_backtrace()[1]['function']);
// \Illuminate\Support\Facades\Log::channel('invoiceninja')->info(print_r($trace[1]['class'],1), []); // \Illuminate\Support\Facades\Log::channel('invoiceninja')->info(print_r($trace[1]['class'],1), []);
if(Ninja::isHosted()) if(Ninja::isHosted()) {
info($output); try{
info($output);
}
catch(\Exception $e){
}
}
else else
\Illuminate\Support\Facades\Log::channel('invoiceninja')->info($output, $context); \Illuminate\Support\Facades\Log::channel('invoiceninja')->info($output, $context);