[Swift-commit] r6058 - trunk/src/org/griphyn/vdl/mapping
hategan at ci.uchicago.edu
hategan at ci.uchicago.edu
Sun Nov 18 02:48:51 CST 2012
Author: hategan
Date: 2012-11-18 02:48:48 -0600 (Sun, 18 Nov 2012)
New Revision: 6058
Modified:
trunk/src/org/griphyn/vdl/mapping/RootDataNode.java
Log:
more tracing of existing fields and also mention whether no files are found
Modified: trunk/src/org/griphyn/vdl/mapping/RootDataNode.java
===================================================================
--- trunk/src/org/griphyn/vdl/mapping/RootDataNode.java 2012-11-18 08:44:46 UTC (rev 6057)
+++ trunk/src/org/griphyn/vdl/mapping/RootDataNode.java 2012-11-18 08:48:48 UTC (rev 6058)
@@ -155,13 +155,16 @@
}
private static void addExisting(Mapper mapper, AbstractDataNode root) {
+ boolean any = false;
for (Path p : mapper.existing()) {
try {
DSHandle field = root.getField(p);
field.closeShallow();
- if (logger.isInfoEnabled()) {
- logger.info("Found data " + root + "." + p);
+ if (tracer.isEnabled()) {
+ tracer.trace(root.getThread(), root.getDeclarationLine(),
+ root.getDisplayableName() + " MAPPING " + p + ", " + mapper.map(p));
}
+ any = true;
}
catch (InvalidPathException e) {
throw new IllegalStateException("Structure of mapped data is " +
@@ -169,6 +172,10 @@
}
}
root.closeDeep();
+ if (!any && tracer.isEnabled()) {
+ tracer.trace(root.getThread(), root.getDeclarationLine(),
+ root.getDisplayableName() + " MAPPING no files found");
+ }
}
public static void checkConsistency(DSHandle handle) {
More information about the Swift-commit
mailing list