mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 16:17:32 -04:00 
			
		
		
		
	Track job errors in the log
This commit is contained in:
		
							parent
							
								
									a7bc5bcef7
								
							
						
					
					
						commit
						bc4468dcfb
					
				| @ -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