|
From: <ha...@us...> - 2007-08-24 00:50:06
|
Revision: 1721
http://cogkit.svn.sourceforge.net/cogkit/?rev=1721&view=rev
Author: hategan
Date: 2007-08-23 17:50:02 -0700 (Thu, 23 Aug 2007)
Log Message:
-----------
debug check
Modified Paths:
--------------
trunk/current/src/cog/modules/karajan/src/org/globus/cog/karajan/workflow/nodes/RestartOnErrorNode.java
Modified: trunk/current/src/cog/modules/karajan/src/org/globus/cog/karajan/workflow/nodes/RestartOnErrorNode.java
===================================================================
--- trunk/current/src/cog/modules/karajan/src/org/globus/cog/karajan/workflow/nodes/RestartOnErrorNode.java 2007-08-24 00:49:23 UTC (rev 1720)
+++ trunk/current/src/cog/modules/karajan/src/org/globus/cog/karajan/workflow/nodes/RestartOnErrorNode.java 2007-08-24 00:50:02 UTC (rev 1721)
@@ -53,16 +53,19 @@
super.notificationEvent(e);
return;
}
-
int itimes = stack.currentFrame().preDecrementAtomic("#restartTimes");
if (itimes >= 0) {
- logger.debug("Restarting. " + itimes + " times left.");
- logger.debug("Stack size: " + stack.frameCount());
+ if (logger.isDebugEnabled()) {
+ logger.debug("Restarting. " + itimes + " times left.");
+ logger.debug("Stack size: " + stack.frameCount());
+ }
this.startRest(stack);
return;
}
else {
- logger.debug("Failed too many times.");
+ if (logger.isDebugEnabled()) {
+ logger.debug("Failed too many times.");
+ }
}
}
super.notificationEvent(e);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|