diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java b/jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java index 55416fd4dbc1..d82907f2839a 100644 --- a/jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java +++ b/jetty-security/src/main/java/org/eclipse/jetty/security/ConstraintSecurityHandler.java @@ -716,8 +716,8 @@ protected boolean checkWebResourcePermissions(String pathInContext, Request requ public void dump(Appendable out, String indent) throws IOException { dumpObjects(out, indent, - DumpableCollection.from("roles", _roles), - DumpableCollection.from("constraints", _constraintMappings)); + DumpableCollection.from("roles", _roles), + DumpableCollection.from("constraints", _constraintMappings)); } @Override @@ -741,14 +741,9 @@ public boolean checkPathsWithUncoveredHttpMethods() Set paths = getPathsWithUncoveredHttpMethods(); if (paths != null && !paths.isEmpty()) { - ContextHandler.Context currentContext = ContextHandler.getCurrentContext(); - - for (String p : paths) - { - LOG.warn("{} has uncovered http methods for path: {}", currentContext, p); - } - if (LOG.isDebugEnabled()) - LOG.debug("{} has uncovered http methods", currentContext, new Throwable()); + LOG.warn("{} has paths with uncovered http methods: [{}]", + ContextHandler.getCurrentContext(), + String.join(", ", paths)); return true; } return false;