XMPP (Blather) exceptions are eaten
-
Ben Langfeld
[13:30] benlangfeld: bklang: Any ideas what I need to do to get better XMPP errors? If the EventMachine breaks down, it goes for a reconnect but doesn't spew the Blather stack trace - not brilliant for debugging. [13:32] bklang: well I've noticed that Adhearsion tends to eat exceptions coming from certain parts of the code (ie. the dialplan.rb). What I usually do is put my own exception handler in there and "puts e.backtrace" [13:32] bklang: that's one of the things I want to address too, it does make debugging much harder [13:32] bklang: there's actually an open ticket on Lighthouse about exceptions getting lost
-
Ben Langfeld
[13:30] benlangfeld: bklang: Any ideas what I need to do to get better XMPP errors? If the EventMachine breaks down, it goes for a reconnect but doesn't spew the Blather stack trace - not brilliant for debugging.
[13:32] bklang: well I've noticed that Adhearsion tends to eat exceptions coming from certain parts of the code (ie. the dialplan.rb). What I usually do is put my own exception handler in there and "puts e.backtrace"
[13:32] bklang: that's one of the things I want to address too, it does make debugging much harder
[13:32] bklang: there's actually an open ticket on Lighthouse about exceptions getting lost
-
Ben Langfeld
Ok, so a quick and dirty bodge would be to override this method and modify the block to handle the exception - except this code doesn't exactly work:
-
Ben Klang
- Tag set to lost exceptions
-
Ben Klang
- State changed from new to open
-
Ben Langfeld
- State changed from open to hold
-
Ben Langfeld
- State changed from hold to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.