From e649880f9024e907b0b1396e113ff647fc33bef5 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Thu, 20 Nov 2008 19:48:47 +0000 Subject: [PATCH] Allow a message to be passed to happy testing dumpStack() git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5566 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/Log.as | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/as/com/threerings/util/Log.as b/src/as/com/threerings/util/Log.as index 2ec6256d2..381157c90 100644 --- a/src/as/com/threerings/util/Log.as +++ b/src/as/com/threerings/util/Log.as @@ -87,9 +87,9 @@ public class Log * A convenience function for quickly printing a stack trace * to the log, useful for debugging. */ - public static function dumpStack () :void + public static function dumpStack (msg :String = "dumpStack") :void { - testing(new Error("dumpStack").getStackTrace()); + testing(new Error(msg).getStackTrace()); } /**