From: Dariusz Bywalec Date: Mon, 4 Jan 2016 10:41:12 +0000 (+0100) Subject: Lower log level of servlet authenticate when request is already authenticated X-Git-Tag: v1.8.0~24^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=db09ef1033ce4942ac1eb3cb684f232bf7e5e231;p=gitblit.git Lower log level of servlet authenticate when request is already authenticated 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. --- diff --git a/src/main/java/com/gitblit/manager/AuthenticationManager.java b/src/main/java/com/gitblit/manager/AuthenticationManager.java index f092bfed..147badfb 100644 --- a/src/main/java/com/gitblit/manager/AuthenticationManager.java +++ b/src/main/java/com/gitblit/manager/AuthenticationManager.java @@ -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); }