[Swift-commit] r4961 - branches/release-0.93/src/org/griphyn/vdl/karajan

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Sun Aug 7 19:07:35 CDT 2011


Author: hategan
Date: 2011-08-07 19:07:35 -0500 (Sun, 07 Aug 2011)
New Revision: 4961

Modified:
   branches/release-0.93/src/org/griphyn/vdl/karajan/Loader.java
Log:
log arguments to swift executable

Modified: branches/release-0.93/src/org/griphyn/vdl/karajan/Loader.java
===================================================================
--- branches/release-0.93/src/org/griphyn/vdl/karajan/Loader.java	2011-08-07 23:02:26 UTC (rev 4960)
+++ branches/release-0.93/src/org/griphyn/vdl/karajan/Loader.java	2011-08-08 00:07:35 UTC (rev 4961)
@@ -16,6 +16,7 @@
 import java.security.SecureRandom;
 import java.text.DateFormat;
 import java.text.SimpleDateFormat;
+import java.util.Arrays;
 import java.util.Date;
 import java.util.Enumeration;
 import java.util.Iterator;
@@ -131,7 +132,10 @@
         try {
             //Thread.sleep(20000);
             setupLogging(ap, projectName, runID);
-            logger.debug("Max heap: " + Runtime.getRuntime().maxMemory());
+            if (logger.isDebugEnabled()) {
+                logger.debug("arguments: " + Arrays.asList(argv));
+                logger.debug("Max heap: " + Runtime.getRuntime().maxMemory());
+            }
             
             if (ap.isPresent(ARG_CDMFILE)) {
                 loadCDM(ap); 




More information about the Swift-commit mailing list