You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2019/07/19 16:21:36 UTC

svn commit: r1863410 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java

Author: tilman
Date: Fri Jul 19 16:21:35 2019
New Revision: 1863410

URL: http://svn.apache.org/viewvc?rev=1863410&view=rev
Log:
PDFBOX-4601: include more debug logging

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java?rev=1863410&r1=1863409&r2=1863410&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java Fri Jul 19 16:21:35 2019
@@ -240,10 +240,12 @@ public class ScratchFile implements Clos
                 // enlarge if we do not overflow
                 if (pageCount + ENLARGE_PAGE_COUNT > pageCount)
                 {
+                    LOG.debug("fileLen before: " + fileLen + ", raf length: " + raf.length());
+                    LOG.debug("file: " + file + ", length: " + file.length());
                     fileLen += ENLARGE_PAGE_COUNT * PAGE_SIZE;
-        
+
                     raf.setLength(fileLen);
-        
+                    LOG.debug("fileLen after:  " + fileLen + ", raf length: " + raf.length());
                     freePages.set(pageCount, pageCount + ENLARGE_PAGE_COUNT);
                 }
             }