Change WebSocket connection rejection logs from warn to debug

This commit is contained in:
adityachandelgit
2025-04-25 11:44:01 -06:00
parent 924532b666
commit 285bc83a98
@@ -34,7 +34,7 @@ public class WebSocketAuthInterceptor implements ChannelInterceptor {
List<String> authHeaders = accessor.getNativeHeader("Authorization");
if (authHeaders == null || authHeaders.isEmpty()) {
log.warn("WebSocket connection rejected: No Authorization header");
log.debug("WebSocket connection rejected: No Authorization header");
throw new IllegalArgumentException("Missing Authorization header");
}
@@ -42,7 +42,7 @@ public class WebSocketAuthInterceptor implements ChannelInterceptor {
Authentication auth = authenticateToken(token);
if (auth == null) {
log.warn("WebSocket connection rejected: Invalid token");
log.debug("WebSocket connection rejected: Invalid token");
throw new IllegalArgumentException("Invalid Authorization token");
}