mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Track job errors in the log
This commit is contained in:
parent
8627f9d745
commit
ca00ee19c6
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Listeners;
|
||||
|
||||
use Illuminate\Queue\Events\JobExceptionOccurred;
|
||||
use App\Events\InvoiceInvitationWasViewed;
|
||||
use App\Events\InvoiceWasCreated;
|
||||
use App\Events\InvoiceWasUpdated;
|
||||
@ -149,4 +150,9 @@ class InvoiceListener
|
||||
$invoice->updateBalances($adjustment);
|
||||
$invoice->updatePaidStatus();
|
||||
}
|
||||
|
||||
public function jobFailed(JobExceptionOccurred $exception)
|
||||
{
|
||||
Utils::logError($exception->exception);
|
||||
}
|
||||
}
|
||||
|
@ -190,10 +190,16 @@ class EventServiceProvider extends ServiceProvider
|
||||
'App\Listeners\ActivityListener@deletedExpense',
|
||||
],
|
||||
|
||||
'Illuminate\Queue\Events\JobExceptionOccurred' => [
|
||||
'App\Listeners\InvoiceListener@jobFailed'
|
||||
]
|
||||
|
||||
/*
|
||||
// Update events
|
||||
\Codedge\Updater\Events\UpdateAvailable::class => [
|
||||
\Codedge\Updater\Listeners\SendUpdateAvailableNotification::class,
|
||||
],
|
||||
*/
|
||||
];
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user