From d6a4468dc96137f83483f028128c17d32c1e9f6b Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 22 Jul 2014 14:07:49 +0200 Subject: Log masked Error Message --- pdf-as-lib/src/main/java/at/gv/egiz/sl/util/SLMarschaller.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pdf-as-lib/src') diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/SLMarschaller.java b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/SLMarschaller.java index 992cee46..8f570ccc 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/SLMarschaller.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/sl/util/SLMarschaller.java @@ -33,10 +33,16 @@ import javax.xml.bind.JAXBException; import javax.xml.bind.Marshaller; import javax.xml.bind.Unmarshaller; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + public class SLMarschaller { private static Marshaller marshaller = null; private static Unmarshaller unmarshaller = null; + private static final Logger logger = LoggerFactory + .getLogger(SLMarschaller.class); + static { try { JAXBContext context = JAXBContext.newInstance("at.gv.egiz.sl.schema"); @@ -46,6 +52,7 @@ public class SLMarschaller { unmarshaller = context.createUnmarshaller(); } catch (JAXBException e) { + logger.error("Error in creating JAXBContext", e); throw new RuntimeException( "There was a problem creating a JAXBContext object for formatting the object to XML."); } -- cgit v1.2.3