// 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);