Now all uncatched errors which have happened in Actors are silently ignored (if not using Future#get) making bugfixing too hard in some of stupidiest cases.
So my proposal is to log such exceptions on fantom level to some standard logger ( concurrent.uncatched for example) so they will be:
visible by default, and
easily configurable/redirected to /dev/null.
What do you think?
brianThu 5 May 2011
Well I agree it is a very tricky problem and would be very nice to log an exception if Future.get isn't used.
The problem is how do you determine if Future.get isn't used? It would require some sort of code analysis or check on garbage collection.
tonsky Thu 5 May 2011
Now all uncatched errors which have happened in Actors are silently ignored (if not using Future#get) making bugfixing too hard in some of stupidiest cases.
So my proposal is to log such exceptions on fantom level to some standard logger (
concurrent.uncatched
for example) so they will be:What do you think?
brian Thu 5 May 2011
Well I agree it is a very tricky problem and would be very nice to log an exception if Future.get isn't used.
The problem is how do you determine if Future.get isn't used? It would require some sort of code analysis or check on garbage collection.