Related to issue 36108: [STORE SERVER2899] An error is raised in central server when the store server is started
authorMartin Taal <martin.taal@openbravo.com>
Fri, 16 Jun 2017 20:51:32 +0200
changeset 32316 45d8b2b00bae
parent 32315 339ac63a6dd5
child 32317 06eb75015d79
Related to issue 36108: [STORE SERVER2899] An error is raised in central server when the store server is started
Log more Request information
src/org/openbravo/erpCommon/security/SessionListener.java
--- a/src/org/openbravo/erpCommon/security/SessionListener.java	Fri Jun 16 17:02:31 2017 +0000
+++ b/src/org/openbravo/erpCommon/security/SessionListener.java	Fri Jun 16 20:51:32 2017 +0200
@@ -157,9 +157,12 @@
       activeHttpSessions.add(event.getSession());
     }
 
+
     if (RequestContext.get().getRequest() != null
         && AuthenticationManager.isStatelessRequest(RequestContext.get().getRequest())) {
-      log.error("Request is stateless, still a session is created ", new Exception());
+      final String errorLog = RequestContext.get().getRequest().getRequestURL() + " "
+          + RequestContext.get().getRequest().getQueryString();
+      log.error("Request is stateless, still a session is created " + errorLog, new Exception());
     }
 
     log.debug("Session created. Active sessions count: " + activeHttpSessions.size());