From b8e029fdadbafa5879afa541ad6b44b27a4d6541 Mon Sep 17 00:00:00 2001 From: Dave Hoover Date: Fri, 9 Jul 2010 23:33:38 +0000 Subject: [PATCH] In with the new logging git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6092 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/crowd/client/PlaceViewUtil.as | 5 ++--- .../com/threerings/presents/client/ClientDObjectMgr.as | 4 +--- .../threerings/presents/client/InvocationDirector.as | 10 ++++------ 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/as/com/threerings/crowd/client/PlaceViewUtil.as b/src/as/com/threerings/crowd/client/PlaceViewUtil.as index 12b425004..58dae7612 100644 --- a/src/as/com/threerings/crowd/client/PlaceViewUtil.as +++ b/src/as/com/threerings/crowd/client/PlaceViewUtil.as @@ -80,9 +80,8 @@ public class PlaceViewUtil (root as PlaceView)[funct](plobj); } catch (e :Error) { var log :Log = Log.getLog(PlaceViewUtil); - log.warning("Component choked on " + funct + "() " + - "[component=" + root + ", plobj=" + plobj + "]."); - log.logStackTrace(e); + log.warning("Component choked on " + funct + "() ", "component", root, + "plobj", plobj, e); } } diff --git a/src/as/com/threerings/presents/client/ClientDObjectMgr.as b/src/as/com/threerings/presents/client/ClientDObjectMgr.as index ec5a4db24..5f65fbad5 100644 --- a/src/as/com/threerings/presents/client/ClientDObjectMgr.as +++ b/src/as/com/threerings/presents/client/ClientDObjectMgr.as @@ -225,9 +225,7 @@ public class ClientDObjectMgr } } catch (e :Error) { - log.warning("Failure processing event [event=" + event + - ", target=" + target + "]."); - log.logStackTrace(e); + log.warning("Failure processing event", "event", event, "target", target, e); } } diff --git a/src/as/com/threerings/presents/client/InvocationDirector.as b/src/as/com/threerings/presents/client/InvocationDirector.as index 6d126095a..c8d91400f 100644 --- a/src/as/com/threerings/presents/client/InvocationDirector.as +++ b/src/as/com/threerings/presents/client/InvocationDirector.as @@ -257,9 +257,8 @@ public class InvocationDirector try { listener.dispatchResponse(methodId, args); } catch (e :Error) { - log.warning("Invocation response listener choked [listener=" + listener + - ", methId=" + methodId + ", args=" + args + "]."); - log.logStackTrace(e); + log.warning("Invocation response listener choked", "listener", listener, + "methId", methodId, "args", args, e); } // flush expired listeners periodically @@ -293,9 +292,8 @@ public class InvocationDirector try { decoder.dispatchNotification(methodId, args); } catch (e :Error) { - log.warning("Invocation notification receiver choked [receiver=" + decoder.receiver + - ", methId=" + methodId + ", args=" + args + "]."); - log.logStackTrace(e); + log.warning("Invocation notification receiver choked", "receiver", decoder.receiver, + "methId", methodId, "args", args, e); } }