Skip to content

Commit b83b709

Browse files
author
Open Lowcode SAS
committed
Close #272
1 parent 8ef8e3f commit b83b709

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/org/openlowcode/server/runtime/ServerConnection.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
import org.openlowcode.server.security.ActionObjectSecurityManager;
6868
import org.openlowcode.server.security.ActionSecurityManager;
6969
import org.openlowcode.server.security.SecurityBuffer;
70+
import org.openlowcode.server.security.ServerSecurityBuffer;
7071

7172
/**
7273
* The component in the sever managing connections with the clients
@@ -870,9 +871,14 @@ private void treatThrowable(
870871
// performance.
871872
PersistenceGateway.releaseForThread();
872873
String usertrace = "unauthenticated";
873-
if (userid != null)
874+
if (userid != null) {
874875
usertrace = userid.getId();
875-
logger.severe("Exception while treating action " + actionname + " to to ip = " + ip + ", for session of user "
876+
Appuser user = ServerSecurityBuffer.getUniqueInstance().getUserPerUserId(userid);
877+
if (user!=null) usertrace = user.getNr()+" - "+user.getName()+" - "+userid.getId();
878+
}
879+
880+
881+
logger.severe("Error while treating action " + actionname + " to to ip = " + ip + ", for session of user "
876882
+ usertrace);
877883
ExceptionLogger.setInLogs(e, logger);
878884
writer.sendMessageError(1, e.getClass().toString() + " - " + e.getMessage());

0 commit comments

Comments
 (0)