Changeset 7386


Ignore:
Timestamp:
12/09/10 17:49:42 (9 years ago)
Author:
melissa
Message:

Added some debugging to help track down an FV1000 bug.

Location:
trunk/components
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/FV1000Reader.java

    r7316 r7386  
    14951495    RandomAccessInputStream stream = getFile(filename); 
    14961496    String data = stream.readString((int) stream.length()); 
    1497     if (!data.startsWith("[")) data = data.substring(2, data.length()); 
     1497    if (!data.startsWith("[")) { 
     1498      data = data.substring(data.indexOf("["), data.length()); 
     1499    } 
    14981500    data = DataTools.stripString(data); 
    14991501    BufferedReader reader = new BufferedReader(new StringReader(data)); 
  • trunk/components/common/src/loci/common/IniParser.java

    r6881 r7386  
    2828import java.io.InputStreamReader; 
    2929 
     30import org.slf4j.Logger; 
     31import org.slf4j.LoggerFactory; 
     32 
    3033/** 
    3134 * A simple parser for INI configuration files. Supports pound (#) as comments, 
     
    3942 */ 
    4043public class IniParser { 
     44 
     45  /** Logger for this class. */ 
     46  private static final Logger LOGGER = LoggerFactory.getLogger(IniParser.class); 
    4147 
    4248  private String commentDelimiter = "#"; 
     
    8187      if (num == 0) break; // eof 
    8288      String line = sb.toString(); 
     89      LOGGER.debug("Line {}: {}", no, line); 
    8390 
    8491      // ignore blank lines 
  • trunk/components/loci-plugins/src/loci/plugins/in/ImportProcess.java

    r7022 r7386  
    624624 
    625625    Logger root = Logger.getRootLogger(); 
    626     root.setLevel(Level.INFO); 
     626    root.setLevel(Level.DEBUG); 
    627627    root.addAppender(new IJStatusEchoer()); 
    628628  } 
  • trunk/components/loci-plugins/src/loci/plugins/util/IJStatusEchoer.java

    r6881 r7386  
    2929 
    3030import org.apache.log4j.AppenderSkeleton; 
     31import org.apache.log4j.Level; 
    3132import org.apache.log4j.spi.LoggingEvent; 
    3233 
     
    4344 
    4445  protected void append(LoggingEvent event) { 
    45     BF.status(false, event.getMessage().toString()); 
     46    if (event.getLevel().isGreaterOrEqual(Level.INFO)) { 
     47      BF.status(false, event.getMessage().toString()); 
     48    } 
     49    else { 
     50      BF.debug(event.getMessage().toString()); 
     51    } 
    4652  } 
    4753 
Note: See TracChangeset for help on using the changeset viewer.