Changeset 6627


Ignore:
Timestamp:
07/01/10 19:30:42 (9 years ago)
Author:
melissa
Message:

Switched TiffParser logging from 'debug' to 'trace'; see #512.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/bio-formats/src/loci/formats/tiff

  • branches/4.2/components/bio-formats/src/loci/formats/tiff/TiffParser.java

    r6495 r6627  
    314314 
    315315    // read in directory entries for this IFD 
    316     LOGGER.debug("getIFDs: seeking IFD at {}", offset); 
     316    LOGGER.trace("getIFDs: seeking IFD at {}", offset); 
    317317    in.seek(offset); 
    318318    long numEntries = bigTiff ? in.readLong() : in.readUnsignedShort(); 
    319     LOGGER.debug("getIFDs: {} directory entries to read", numEntries); 
     319    LOGGER.trace("getIFDs: {} directory entries to read", numEntries); 
    320320    if (numEntries == 0 || numEntries == 1) return ifd; 
    321321 
     
    344344        int oldCount = count; 
    345345        count = (int) ((inputLen - pointer) / bpe); 
    346         LOGGER.debug("getIFDs: truncated {} array elements for tag {}", 
     346        LOGGER.trace("getIFDs: truncated {} array elements for tag {}", 
    347347          (oldCount - count), tag); 
    348348      } 
     
    384384    long offset = entry.getValueOffset(); 
    385385 
    386     LOGGER.debug("Reading entry {} from {}; type={}, count={}", 
     386    LOGGER.trace("Reading entry {} from {}; type={}, count={}", 
    387387      new Object[] {entry.getTag(), offset, type, count}); 
    388388 
     
    587587    long width, long height) throws FormatException, IOException 
    588588  { 
    589     LOGGER.debug("parsing IFD entries"); 
     589    LOGGER.trace("parsing IFD entries"); 
    590590 
    591591    // get internal non-IFD entries 
     
    598598    long tileLength = ifd.getTileLength(); 
    599599    if (tileLength <= 0) { 
    600       LOGGER.debug("Tile length is {}; setting it to {}", tileLength, height); 
     600      LOGGER.trace("Tile length is {}; setting it to {}", tileLength, height); 
    601601      tileLength = height; 
    602602    } 
     
    629629 
    630630    // read in image strips 
    631     LOGGER.debug("reading image data (samplesPerPixel={}; numSamples={})", 
     631    LOGGER.trace("reading image data (samplesPerPixel={}; numSamples={})", 
    632632      samplesPerPixel, numSamples); 
    633633 
     
    756756    } 
    757757 
    758     LOGGER.debug( 
     758    LOGGER.trace( 
    759759      "unpacking {} samples (startIndex={}; totalBits={}; numBytes={})", 
    760760      new Object[] {sampleCount, startIndex, nChannels * bitsPerSample[0], 
     
    795795 
    796796    int skipBits = (int) (8 - ((imageWidth * bps0 * nChannels) % 8)); 
    797  
    798797    if (skipBits == 8 || 
    799798      (bytes.length * 8 < bps0 * (nChannels * imageWidth + imageHeight))) 
  • trunk/components/bio-formats/src/loci/formats/tiff/TiffParser.java

    r6495 r6627  
    314314 
    315315    // read in directory entries for this IFD 
    316     LOGGER.debug("getIFDs: seeking IFD at {}", offset); 
     316    LOGGER.trace("getIFDs: seeking IFD at {}", offset); 
    317317    in.seek(offset); 
    318318    long numEntries = bigTiff ? in.readLong() : in.readUnsignedShort(); 
    319     LOGGER.debug("getIFDs: {} directory entries to read", numEntries); 
     319    LOGGER.trace("getIFDs: {} directory entries to read", numEntries); 
    320320    if (numEntries == 0 || numEntries == 1) return ifd; 
    321321 
     
    344344        int oldCount = count; 
    345345        count = (int) ((inputLen - pointer) / bpe); 
    346         LOGGER.debug("getIFDs: truncated {} array elements for tag {}", 
     346        LOGGER.trace("getIFDs: truncated {} array elements for tag {}", 
    347347          (oldCount - count), tag); 
    348348      } 
     
    384384    long offset = entry.getValueOffset(); 
    385385 
    386     LOGGER.debug("Reading entry {} from {}; type={}, count={}", 
     386    LOGGER.trace("Reading entry {} from {}; type={}, count={}", 
    387387      new Object[] {entry.getTag(), offset, type, count}); 
    388388 
     
    587587    long width, long height) throws FormatException, IOException 
    588588  { 
    589     LOGGER.debug("parsing IFD entries"); 
     589    LOGGER.trace("parsing IFD entries"); 
    590590 
    591591    // get internal non-IFD entries 
     
    598598    long tileLength = ifd.getTileLength(); 
    599599    if (tileLength <= 0) { 
    600       LOGGER.debug("Tile length is {}; setting it to {}", tileLength, height); 
     600      LOGGER.trace("Tile length is {}; setting it to {}", tileLength, height); 
    601601      tileLength = height; 
    602602    } 
     
    629629 
    630630    // read in image strips 
    631     LOGGER.debug("reading image data (samplesPerPixel={}; numSamples={})", 
     631    LOGGER.trace("reading image data (samplesPerPixel={}; numSamples={})", 
    632632      samplesPerPixel, numSamples); 
    633633 
     
    756756    } 
    757757 
    758     LOGGER.debug( 
     758    LOGGER.trace( 
    759759      "unpacking {} samples (startIndex={}; totalBits={}; numBytes={})", 
    760760      new Object[] {sampleCount, startIndex, nChannels * bitsPerSample[0], 
Note: See TracChangeset for help on using the changeset viewer.