[Swift-commit] r6044 - branches/release-0.94/src/org/griphyn/vdl/engine

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Wed Nov 14 22:28:09 CST 2012


Author: davidk
Date: 2012-11-14 22:28:09 -0600 (Wed, 14 Nov 2012)
New Revision: 6044

Modified:
   branches/release-0.94/src/org/griphyn/vdl/engine/VariableScope.java
Log:
Move scope warnings to log instead of stdout


Modified: branches/release-0.94/src/org/griphyn/vdl/engine/VariableScope.java
===================================================================
--- branches/release-0.94/src/org/griphyn/vdl/engine/VariableScope.java	2012-11-15 03:15:51 UTC (rev 6043)
+++ branches/release-0.94/src/org/griphyn/vdl/engine/VariableScope.java	2012-11-15 04:28:09 UTC (rev 6044)
@@ -138,9 +138,11 @@
 		// by the above if? in which case isVariableDefined should
 		// be replaced by is locally defined test.
 		if(parentScope != null && parentScope.isVariableDefined(name)) {
-			logger.warn("Variable "+name+" defined in scope "+hashCode()
-			+ " shadows variable of same name in scope "
-			+ parentScope.hashCode());
+		    if(logger.isDebugEnabled()) {
+			   logger.debug("Variable "+name+" defined in scope "+hashCode()
+			   + " shadows variable of same name in scope "
+			   + parentScope.hashCode());
+		    }
 		}
 
 		if(global && this != rootScope) {




More information about the Swift-commit mailing list