Skip to content
Snippets Groups Projects
Commit 48f507b6 authored by srosse's avatar srosse
Browse files

OO-954: re-init the activity logger in the rest dispatcher

parent 2e0144e3
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,7 @@ import org.olat.core.id.context.BusinessControl; ...@@ -48,6 +48,7 @@ import org.olat.core.id.context.BusinessControl;
import org.olat.core.id.context.BusinessControlFactory; import org.olat.core.id.context.BusinessControlFactory;
import org.olat.core.logging.OLog; import org.olat.core.logging.OLog;
import org.olat.core.logging.Tracing; import org.olat.core.logging.Tracing;
import org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller;
import org.olat.core.util.StringHelper; import org.olat.core.util.StringHelper;
import org.olat.core.util.UserSession; import org.olat.core.util.UserSession;
import org.olat.core.util.WebappHelper; import org.olat.core.util.WebappHelper;
...@@ -138,6 +139,9 @@ public class RESTDispatcher implements Dispatcher { ...@@ -138,6 +139,9 @@ public class RESTDispatcher implements Dispatcher {
// create the olat ureq and get an associated main window to spawn the "tab" // create the olat ureq and get an associated main window to spawn the "tab"
// //
UserSession usess = CoreSpringFactory.getImpl(UserSessionManager.class).getUserSession(request); UserSession usess = CoreSpringFactory.getImpl(UserSessionManager.class).getUserSession(request);
if(usess != null) {
ThreadLocalUserActivityLoggerInstaller.initUserActivityLogger(request);
}
UserRequest ureq = null; UserRequest ureq = null;
try { try {
//upon creation URL is checked for //upon creation URL is checked for
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment