Log stack traces for errors thrown in controller handle* methods.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4303 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-08-07 23:22:42 +00:00
parent fe78d7d9cd
commit 35c7144d26
+3 -1
View File
@@ -39,9 +39,11 @@ public class Controller
try {
fn(arg);
} catch (e :Error) {
Log.getLog(this).warning("Error handling controller " +
var log :Log = Log.getLog(this);
log.warning("Error handling controller " +
"command [error=" + e + ", cmd=" + cmd +
", arg=" + arg + "].");
log.logStackTrace(e);
}
// we "handled" the event, even if it threw an error
return true;