From 35c7144d264474faed984ad49873af1ae72cca94 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Mon, 7 Aug 2006 23:22:42 +0000 Subject: [PATCH] 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 --- src/as/com/threerings/util/Controller.as | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/as/com/threerings/util/Controller.as b/src/as/com/threerings/util/Controller.as index 60c33af99..c945ff585 100644 --- a/src/as/com/threerings/util/Controller.as +++ b/src/as/com/threerings/util/Controller.as @@ -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;