Always add reference to user in error log messages - Mendix Forum

Always add reference to user in error log messages

1

Sometimes, error messages are very vague but clearly caused by a user. It would be nice if every log message would include a reference to the user who caused/encountered the issue.

Every microflow has a context, it can be a user context or a system context, that it very valuable information for troubleshooting, so should be attached to the log message.

Some messages do have clear reference, like: ✅

Uploading file failed: Failed to commit [User 'user.name' with session id 'f168860d-XXXX-XXXX-XXXX-XXXXXXXXa85c' and roles 'Employee'

But some others don't even have a message, only a stacktrace: ❓

com.mendix.systemwideinterfaces.MendixRuntimeException: org.eclipse.jetty.io.EofException: Closed
at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:23)
Caused by: org.eclipse.jetty.io.EofException: Closed

In this case, I would like to know for which user this closed connection occured. I only know it's logged in the Mendix own Connector log node.

asked
0 answers