mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-21 06:52:11 +01:00
do not create a httpsession for logging
This commit is contained in:
@@ -173,20 +173,23 @@ public class LoggingFilter extends HttpFilter
|
||||
}
|
||||
}
|
||||
|
||||
HttpSession session = request.getSession(true);
|
||||
HttpSession session = request.getSession(false);
|
||||
|
||||
logger.debug("Session-New: {}", Boolean.toString(session.isNew()));
|
||||
|
||||
Enumeration sAttributes = session.getAttributeNames();
|
||||
|
||||
if (sAttributes != null)
|
||||
if (session != null)
|
||||
{
|
||||
while (sAttributes.hasMoreElements())
|
||||
{
|
||||
String sAttribute = (String) sAttributes.nextElement();
|
||||
logger.debug("Session-New: {}", Boolean.toString(session.isNew()));
|
||||
|
||||
logger.debug("Session-Attribute: {} = {}", sAttribute,
|
||||
request.getSession().getAttribute(sAttribute).toString());
|
||||
Enumeration sAttributes = session.getAttributeNames();
|
||||
|
||||
if (sAttributes != null)
|
||||
{
|
||||
while (sAttributes.hasMoreElements())
|
||||
{
|
||||
String sAttribute = (String) sAttributes.nextElement();
|
||||
|
||||
logger.debug("Session-Attribute: {} = {}", sAttribute,
|
||||
request.getSession().getAttribute(sAttribute).toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user