pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1824718 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java
Date Mon, 19 Feb 2018 07:30:27 GMT
Author: msahyoun
Date: Mon Feb 19 07:30:26 2018
New Revision: 1824718

URL: http://svn.apache.org/viewvc?rev=1824718&view=rev
Log:
PDFBOX-4071: preserve exception for logger

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java?rev=1824718&r1=1824717&r2=1824718&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java Mon Feb 19 07:30:26
2018
@@ -145,7 +145,7 @@ public class ScratchFile implements Clos
         catch (IOException ioe)
         {
             // cannot happen for main memory setup
-            LOG.error("Unexpected exception occurred creating main memory scratch file instance:
" + ioe.getMessage() );
+            LOG.error("Unexpected exception occurred creating main memory scratch file instance:
" + ioe.getMessage(), ioe);
             return null;
         }
     }
@@ -168,7 +168,7 @@ public class ScratchFile implements Clos
         catch (IOException ioe)
         {
             // cannot happen for main memory setup
-            LOG.error("Unexpected exception occurred creating main memory scratch file instance:
" + ioe.getMessage() );
+            LOG.error("Unexpected exception occurred creating main memory scratch file instance:
" + ioe.getMessage(), ioe);
             return null;
         }
     }



Mime
View raw message