summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2019-10-01 11:19:34 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2019-10-01 11:19:34 +0200
commit47e3c950b4542590279914ad845a75098c3de68f (patch)
treea7461348ecdab5be97ceb38b39caba7254da93a9 /src/main
parentdf2ba23f9479f37c11a7a23b697b5acaa4e97d33 (diff)
downloadegovutils-47e3c950b4542590279914ad845a75098c3de68f.tar.gz
egovutils-47e3c950b4542590279914ad845a75098c3de68f.tar.bz2
egovutils-47e3c950b4542590279914ad845a75098c3de68f.zip
update maven build
fix one dependency problem
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/gv/util/data/ElectronicIdentity.java11
1 files changed, 6 insertions, 5 deletions
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));