[Swift-commit] r4530 - trunk/src/org/griphyn/vdl/karajan/lib/swiftscript

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Wed May 25 15:53:04 CDT 2011


Author: hategan
Date: 2011-05-25 15:53:04 -0500 (Wed, 25 May 2011)
New Revision: 4530

Modified:
   trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java
Log:
old behavior for trace(); if variable has a value, then print that value

Modified: trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java	2011-05-25 20:42:28 UTC (rev 4529)
+++ trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java	2011-05-25 20:53:04 UTC (rev 4530)
@@ -68,7 +68,8 @@
 			if (i != 0) {
 			    buf.append(", ");
 			}
-			buf.append(args[i]);
+			Object v = args[i].getValue();
+			buf.append(v == null ? args[i] : v);
 		}
 		traceLogger.warn(buf);
 		return null;




More information about the Swift-commit mailing list