pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1865866 - /pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingPaneController.java
Date Sat, 24 Aug 2019 18:10:38 GMT
Author: tilman
Date: Sat Aug 24 18:10:38 2019
New Revision: 1865866

URL: http://svn.apache.org/viewvc?rev=1865866&view=rev
Log:
PDFBOX-4071: improve logging

Modified:
    pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingPaneController.java

Modified: pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingPaneController.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingPaneController.java?rev=1865866&r1=1865865&r2=1865866&view=diff
==============================================================================
--- pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingPaneController.java
(original)
+++ pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/fontencodingpane/FontEncodingPaneController.java
Sat Aug 24 18:10:38 2019
@@ -20,6 +20,8 @@ import java.awt.geom.GeneralPath;
 import java.awt.geom.Rectangle2D;
 import java.io.IOException;
 import javax.swing.JPanel;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.apache.pdfbox.cos.COSDictionary;
 import org.apache.pdfbox.cos.COSName;
 import org.apache.pdfbox.pdmodel.PDResources;
@@ -67,6 +69,8 @@ abstract class FontPane
  */
 public class FontEncodingPaneController
 {
+    private static final Log LOG = LogFactory.getLog(FontEncodingPaneController.class);
+
     private FontPane fontPane;
 
     /**
@@ -95,7 +99,7 @@ public class FontEncodingPaneController
         }
         catch (IOException e)
         {
-            e.printStackTrace();
+            LOG.error(e.getMessage(), e);
         }
     }
 



Mime
View raw message