[Swift-commit] r2159 - provider-wonky/src/org/globus/cog/abstraction/impl/execution/wonky
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Tue Jul 29 05:30:41 CDT 2008
Author: benc
Date: 2008-07-29 05:30:40 -0500 (Tue, 29 Jul 2008)
New Revision: 2159
Modified:
provider-wonky/src/org/globus/cog/abstraction/impl/execution/wonky/JobSubmissionTaskHandler.java
Log:
tidy up output some
Modified: provider-wonky/src/org/globus/cog/abstraction/impl/execution/wonky/JobSubmissionTaskHandler.java
===================================================================
--- provider-wonky/src/org/globus/cog/abstraction/impl/execution/wonky/JobSubmissionTaskHandler.java 2008-07-29 09:06:10 UTC (rev 2158)
+++ provider-wonky/src/org/globus/cog/abstraction/impl/execution/wonky/JobSubmissionTaskHandler.java 2008-07-29 10:30:40 UTC (rev 2159)
@@ -244,14 +244,12 @@
if (killed) {
return;
}
-System.err.println("Wonky job completed with exitCode "+exitCode);
if (exitCode == 0) {
if(failDelay("completed")) {
this.task.setStatus(Status.COMPLETED);
} else {
this.task.setStatus(Status.FAILED);
}
-System.err.println("Wonky job status COMPLETED "+jobNumber);
} else {
throw new JobException(exitCode);
}
@@ -371,7 +369,7 @@
boolean failDelay(String name) {
double failRate = getWonkyParam(name+"fail");
double delayTime = getWonkyParam(name+"delay");
- System.out.println("Fail probability is: "+failRate);
+ System.out.print("State "+name+" with probability of failure "+failRate+": ");
if(Math.random()<failRate) {
System.out.println("Fail.");
return false;
@@ -393,7 +391,7 @@
if(op.startsWith(name+"=")) {
String value = op.substring(name.length()+1);
- System.out.println("Parameter "+name+" has value "+value);
+ logger.debug("Parameter "+name+" has value "+value);
return Double.parseDouble(value);
}
}
More information about the Swift-commit
mailing list