mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
commit
783e3bb632
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user