aboutsummaryrefslogtreecommitdiff
path: root/id/server
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-03-31 08:48:29 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-03-31 08:48:29 +0200
commit6b6d22483ae1291e2c97bad9ab67c9d817247d08 (patch)
tree94296f76833d00ddc36a7c1df561cc4f151909f1 /id/server
parent8cb4ecdf1f2e120e4dcf3c1a4101206250028444 (diff)
downloadmoa-id-spss-6b6d22483ae1291e2c97bad9ab67c9d817247d08.tar.gz
moa-id-spss-6b6d22483ae1291e2c97bad9ab67c9d817247d08.tar.bz2
moa-id-spss-6b6d22483ae1291e2c97bad9ab67c9d817247d08.zip
Add additional log messages
Diffstat (limited to 'id/server')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AuthenticationSessionStoreage.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AuthenticationSessionStoreage.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AuthenticationSessionStoreage.java
index 393b80d04..e6efa0256 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AuthenticationSessionStoreage.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/storage/AuthenticationSessionStoreage.java
@@ -119,7 +119,7 @@ public class AuthenticationSessionStoreage {
dbsession.setUpdated(new Date());
MOASessionDBUtils.saveOrUpdate(dbsession);
- Logger.info("MOASession with sessionID=" + session.getSessionID() + " is stored in Database");
+ Logger.debug("MOASession with sessionID=" + session.getSessionID() + " is stored in Database");
} catch (MOADatabaseException e) {
Logger.warn("MOASession could not be stored.");
@@ -144,7 +144,7 @@ public class AuthenticationSessionStoreage {
dbsession.setUpdated(new Date());
MOASessionDBUtils.saveOrUpdate(dbsession);
- Logger.info("MOASession with sessionID=" + session.getSessionID() + " is stored in Database");
+ Logger.debug("MOASession with sessionID=" + session.getSessionID() + " is stored in Database");
} catch (MOADatabaseException e) {
Logger.warn("MOASession could not be stored.");
@@ -191,6 +191,10 @@ public class AuthenticationSessionStoreage {
AuthenticatedSessionStore dbsession = searchInDatabase(session.getSessionID());
String id = Random.nextRandom();
+
+ Logger.debug("Change SessionID from " + session.getSessionID()
+ + "to " + id);
+
session.setSessionID(id);
dbsession.setSessionid(id);
@@ -207,6 +211,8 @@ public class AuthenticationSessionStoreage {
MOASessionDBUtils.saveOrUpdate(dbsession);
+ Logger.trace("Change SessionID complete.");
+
return id;
} catch (MOADatabaseException e) {
@@ -225,6 +231,8 @@ public class AuthenticationSessionStoreage {
Session session = MOASessionDBUtils.getCurrentSession();
List<AuthenticatedSessionStore> result;
+ Logger.trace("Add SSO information to session " + moaSessionID);
+
synchronized (session) {
tx = session.beginTransaction();