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:
@@ -39,9 +39,11 @@ public class Controller
|
|||||||
try {
|
try {
|
||||||
fn(arg);
|
fn(arg);
|
||||||
} catch (e :Error) {
|
} 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 +
|
"command [error=" + e + ", cmd=" + cmd +
|
||||||
", arg=" + arg + "].");
|
", arg=" + arg + "].");
|
||||||
|
log.logStackTrace(e);
|
||||||
}
|
}
|
||||||
// we "handled" the event, even if it threw an error
|
// we "handled" the event, even if it threw an error
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user