summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver/src/main/java/org/openslx
diff options
context:
space:
mode:
authorSimon Rettberg2017-03-03 13:20:19 +0100
committerSimon Rettberg2017-03-03 13:20:19 +0100
commit3116d4c8d5307414d472a5efccb0d84334a51e47 (patch)
tree0a9a88cfc11064bccab74380ac2948289953adc0 /dozentenmodulserver/src/main/java/org/openslx
parent[client] Don't update server storage space too often if user is inactive (diff)
downloadtutor-module-3116d4c8d5307414d472a5efccb0d84334a51e47.tar.gz
tutor-module-3116d4c8d5307414d472a5efccb0d84334a51e47.tar.xz
tutor-module-3116d4c8d5307414d472a5efccb0d84334a51e47.zip
[server] Log user name on login
Diffstat (limited to 'dozentenmodulserver/src/main/java/org/openslx')
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/SessionManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/SessionManager.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/SessionManager.java
index 45cb1879..ede5bdea 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/SessionManager.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/SessionManager.java
@@ -9,6 +9,7 @@ import java.util.concurrent.TimeUnit;
import org.apache.log4j.Logger;
import org.openslx.bwlp.sat.database.mappers.DbUser;
import org.openslx.bwlp.sat.permissions.User;
+import org.openslx.bwlp.sat.util.Formatter;
import org.openslx.bwlp.thrift.iface.AuthorizationError;
import org.openslx.bwlp.thrift.iface.Role;
import org.openslx.bwlp.thrift.iface.TAuthorizationException;
@@ -155,7 +156,7 @@ public class SessionManager {
e);
throw new TInvocationException();
}
- LOGGER.info("Got user " + ui.userId + " for token " + token);
+ LOGGER.info("Got '" + Formatter.userFullName(ui) + "' (" + ui.userId + ") for token " + token);
if (ui.role == null) {
// Fail-safe: No role supplied, assume student
ui.role = Role.STUDENT;