From: Tim Allison Date: Fri, 8 Jan 2016 17:06:39 +0000 (+0000) Subject: POI-58822 switch printStackTrace for actual log msg. Should probably open separate... X-Git-Tag: REL_3_14_FINAL~93 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7de587053e34bd5863b117826289655b23d87472;p=poi.git POI-58822 switch printStackTrace for actual log msg. Should probably open separate ticket to handle handful of other instances git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1723765 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/src/org/apache/poi/hslf/record/TxMasterStyleAtom.java b/src/scratchpad/src/org/apache/poi/hslf/record/TxMasterStyleAtom.java index 9ee64d6281..e63137d9c5 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/record/TxMasterStyleAtom.java +++ b/src/scratchpad/src/org/apache/poi/hslf/record/TxMasterStyleAtom.java @@ -28,6 +28,8 @@ import org.apache.poi.hslf.model.textproperties.TextPropCollection; import org.apache.poi.hslf.model.textproperties.TextPropCollection.TextPropType; import org.apache.poi.util.LittleEndian; import org.apache.poi.util.LittleEndianOutputStream; +import org.apache.poi.util.POILogFactory; +import org.apache.poi.util.POILogger; /** * TxMasterStyleAtom atom (4003). @@ -69,7 +71,7 @@ public final class TxMasterStyleAtom extends RecordAtom { try { init(); } catch (Exception e){ - e.printStackTrace(); + POILogFactory.getLogger(TxMasterStyleAtom.class).log(POILogger.WARN, "Exception when reading available styles", e); } }