castor mapping unmarshalling logging
authorjprocter <Jim Procter>
Mon, 28 May 2007 09:53:19 +0000 (09:53 +0000)
committerjprocter <Jim Procter>
Mon, 28 May 2007 09:53:19 +0000 (09:53 +0000)
src/jalview/datamodel/xdb/embl/EmblFile.java

index 52542aa..3b04396 100644 (file)
@@ -66,7 +66,9 @@ public class EmblFile {
           // 2. Unmarshal the data
           Unmarshaller unmar = new Unmarshaller(record);
           try {
-              // uncomment to DEBUG EMBLFile reading unmar.setDebug(jalview.bin.Cache.log.isDebugEnabled());
+              // uncomment to DEBUG EMBLFile reading 
+            if (((String)jalview.bin.Cache.getDefault(jalview.bin.Cache.CASTORLOGLEVEL, "debug")).equalsIgnoreCase("DEBUG")
+                    ) unmar.setDebug(jalview.bin.Cache.log.isDebugEnabled());
           } catch (Exception e) {};
           unmar.setIgnoreExtraElements(true);
           unmar.setMapping(map);