From 47e3c950b4542590279914ad845a75098c3de68f Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Tue, 1 Oct 2019 11:19:34 +0200 Subject: update maven build fix one dependency problem --- src/main/java/at/gv/util/data/ElectronicIdentity.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/main/java/at/gv/util/data/ElectronicIdentity.java b/src/main/java/at/gv/util/data/ElectronicIdentity.java index ea5bd25..afbf652 100644 --- a/src/main/java/at/gv/util/data/ElectronicIdentity.java +++ b/src/main/java/at/gv/util/data/ElectronicIdentity.java @@ -40,7 +40,8 @@ import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.time.DateFormatUtils; import org.apache.commons.lang.time.DateUtils; -import org.apache.log4j.Logger; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; @@ -72,7 +73,7 @@ public final class ElectronicIdentity implements Serializable, Empty, RoleContai private static final long serialVersionUID = 1L; - private Logger log = Logger.getLogger(this.getClass().getName()); + private Logger log = LoggerFactory.getLogger(this.getClass().getName()); private static final String FIRSTNAME = "firstname"; private static final String LASTNAME = "lastname"; @@ -331,7 +332,7 @@ public final class ElectronicIdentity implements Serializable, Empty, RoleContai public ElectronicIdentity(AssertionType assertion, boolean isMOAIDAssertion) throws EgovUtilException { this(); // debug moa-id response - log.trace("Debug response: " + System.getProperty("debug.moaid.log.path") != null); + log.trace("Debug response: {}", System.getProperty("debug.moaid.log.path") != null); if (System.getProperty("debug.moaid.log.path") != null) { try { ObjectFactory of = new ObjectFactory(); @@ -344,7 +345,7 @@ public final class ElectronicIdentity implements Serializable, Empty, RoleContai fos.flush(); fos.close(); } catch(Exception e) { - log.debug(e); + log.debug(e.getMessage(), e); } } if (isMOAIDAssertion) { @@ -506,7 +507,7 @@ public final class ElectronicIdentity implements Serializable, Empty, RoleContai properties.getProperty(DATEOFBIRTH), new String[] { "yyyy-MM-dd", "dd.MM.yyyy", })); } catch (ParseException e) { - log.error(e); + log.error(e.getMessage(), e); } } this.setTitle(properties.getProperty(TITLE)); -- cgit v1.2.3