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

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Fri Jul 11 23:38:16 CDT 2014


Author: hategan
Date: 2014-07-11 23:38:16 -0500 (Fri, 11 Jul 2014)
New Revision: 7994

Modified:
   trunk/src/org/griphyn/vdl/karajan/lib/Execute.java
Log:
fixed job logging

Modified: trunk/src/org/griphyn/vdl/karajan/lib/Execute.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/Execute.java	2014-07-12 04:36:23 UTC (rev 7993)
+++ trunk/src/org/griphyn/vdl/karajan/lib/Execute.java	2014-07-12 04:38:16 UTC (rev 7994)
@@ -139,14 +139,14 @@
 	        logger.debug(task);
 	        logger.debug("Submitting task " + task);
 	    }
-	    String jobid = this.jobid.getValue(stack);
 	    if (logger.isInfoEnabled()) {
+	        String jobid = this.jobid.getValue(stack);
 	        JobSpecification spec = (JobSpecification) task.getSpecification();
-	        logger.info(buildTaskInfoString(task, spec));
+	        logger.info(buildTaskInfoString(task, jobid, spec));
 	    }
 	}
 
-	private String buildTaskInfoString(Task task, JobSpecification spec) {
+	private String buildTaskInfoString(Task task, String jobid, JobSpecification spec) {
         StringBuilder sb = new StringBuilder();
         sb.append("JOB_TASK jobid=");
         sb.append(jobid);




More information about the Swift-commit mailing list