rcrowe / Raven

Send to Sentry in the background
34 stars 13 forks source link

Events dispatcher has not been set. #22

Open tobz-nz opened 9 years ago

tobz-nz commented 9 years ago

Hi, I'm getting this error in my logs. can't figure out why. Only happens when the Raven service provider is enabled. All errors are getting through to sentry & are written to the log file.

This log is from the supervisor.log file. There is a similar one in the laravel log file.

  [RuntimeException]                   
  Events dispatcher has not been set.  

queue:work [--queue[="..."]] [--daemon] [--delay[="..."]] [--force] [--memory[="..."]] [--sleep[="..."]] [--tries[="..."]] [connection]

Processed: rcrowe\Raven\Handler\Laravel\Job

disabling the service provider = the queue job completes successfully.

Any ideas?

tobz-nz commented 9 years ago

Figured out my problem - something to do with Log::listen in a queue handler.

I'll leave the ticket open for now so you can have a quick look.