From db09ef1033ce4942ac1eb3cb684f232bf7e5e231 Mon Sep 17 00:00:00 2001 From: Dariusz Bywalec Date: Mon, 4 Jan 2016 11:41:12 +0100 Subject: [PATCH] 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. --- src/main/java/com/gitblit/manager/AuthenticationManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5