]> source.dussan.org Git - gitblit.git/commitdiff
Lower log level of servlet authenticate when request is already authenticated 991/head
authorDariusz Bywalec <dariusz.bywalec@trapezegroup.pl>
Mon, 4 Jan 2016 10:41:12 +0000 (11:41 +0100)
committerDariusz Bywalec <dariusz.bywalec@trapezegroup.pl>
Mon, 4 Jan 2016 10:41:12 +0000 (11:41 +0100)
When calling a servlet which has already been authenticated, the server would produce
a lot of superfluous log entries, e.g:

Called servlet authenticate when request is already authenticated.

The log level for this log entry has been lowered down to DEBUG.

src/main/java/com/gitblit/manager/AuthenticationManager.java

index f092bfede7d670331f33993b5d13f982d1d23400..147badfbe9c8c097c7c06c29963bee482338a5bb 100644 (file)
@@ -204,7 +204,7 @@ public class AuthenticationManager implements IAuthenticationManager {
                // Check if this request has already been authenticated, and trust that instead of re-processing
                String reqAuthUser = (String) httpRequest.getAttribute(Constants.ATTRIB_AUTHUSER);
                if (!StringUtils.isEmpty(reqAuthUser)) {
-                       logger.warn("Called servlet authenticate when request is already authenticated.");
+                       logger.debug("Called servlet authenticate when request is already authenticated.");
                        return userManager.getUserModel(reqAuthUser);
                }