From 6f20d8f8fb510fd7fbecfafd0254126624a5e9e1 Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Wed, 27 Feb 2019 14:42:00 +0100 Subject: [PATCH] Improve logging --- .../src/org/argeo/cms/auth/HttpSessionLoginModule.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/org.argeo.cms/src/org/argeo/cms/auth/HttpSessionLoginModule.java b/org.argeo.cms/src/org/argeo/cms/auth/HttpSessionLoginModule.java index cbd54063c..1bbe359b9 100644 --- a/org.argeo.cms/src/org/argeo/cms/auth/HttpSessionLoginModule.java +++ b/org.argeo.cms/src/org/argeo/cms/auth/HttpSessionLoginModule.java @@ -80,9 +80,8 @@ public class HttpSessionLoginModule implements LoginModule { httpSession = request.getSession(true); } String httpSessionId = httpSession.getId(); - // authorization = (Authorization) - // request.getSession().getAttribute(HttpContext.AUTHORIZATION); - // if (authorization == null) { + if (log.isTraceEnabled()) + log.trace("HTTP login: " + request.getPathInfo() + " #" + httpSessionId); Collection> sr; try { sr = bc.getServiceReferences(CmsSession.class, @@ -108,8 +107,12 @@ public class HttpSessionLoginModule implements LoginModule { extractHttpAuth(request); extractClientCertificate(request); if (authorization == null) { + if (log.isTraceEnabled()) + log.trace("HTTP login: " + false); return false; } else { + if (log.isTraceEnabled()) + log.trace("HTTP login: " + true); return true; } } -- 2.30.2