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

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Sat Apr 28 20:42:17 CDT 2012


Author: hategan
Date: 2012-04-28 20:42:17 -0500 (Sat, 28 Apr 2012)
New Revision: 5770

Modified:
   trunk/src/org/griphyn/vdl/karajan/lib/PartialCloseDataset.java
Log:
check logging level

Modified: trunk/src/org/griphyn/vdl/karajan/lib/PartialCloseDataset.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/PartialCloseDataset.java	2012-04-29 01:42:07 UTC (rev 5769)
+++ trunk/src/org/griphyn/vdl/karajan/lib/PartialCloseDataset.java	2012-04-29 01:42:17 UTC (rev 5770)
@@ -69,7 +69,9 @@
 			}
 
 			c.add(closeID);
-			logger.debug("Adding token "+closeID+" with hash "+closeID.hashCode());
+			if (logger.isDebugEnabled()) {
+			    logger.debug("Adding token "+closeID+" with hash "+closeID.hashCode());
+			}
 
 			String needToWaitFor = var.getParam("waitfor");
 			logger.debug("need to wait for " + needToWaitFor);
@@ -82,13 +84,19 @@
 					// then we have a required element that we have not
 					// seen yet, so...
 					hasUnseenToken = true;
-					logger.debug("Container does not contain token " + s);
+					if (logger.isDebugEnabled()) {
+					    logger.debug("Container does not contain token " + s);
+					}
 				} else {
-					logger.debug("Container does contain token " + s);
+				    if (logger.isDebugEnabled()) {
+				        logger.debug("Container does contain token " + s);
+				    }
 				}
 			}
 		}
-		logger.debug("hasUnseenToken = "+hasUnseenToken);
+		if (logger.isDebugEnabled()) {
+		    logger.debug("hasUnseenToken = "+hasUnseenToken);
+		}
 		if(!hasUnseenToken) {
 			if(logger.isDebugEnabled()) {
 				logger.debug("All partial closes for " + var + 




More information about the Swift-commit mailing list