@@ -188,14 +188,13 @@ protected boolean isIncludePayload() {
188188 }
189189
190190 /**
191- * Configure a predicate for selecting which query params should be logged if
192- * {@link #setIncludeQueryString(boolean)} is set to {@code true}.
193- * <p>By default this is not set in which case all query params are logged
194- *
195- * <p>If there are multiple values for the same query param,
196- * the predicate will be applied once per query param name.
197- * As a result, the use of this predicate may result in a different query string
198- * than the one returned by {@link HttpServletRequest#getQueryString()}.
191+ * Configure a predicate for selecting which query parameters should be logged
192+ * if {@link #setIncludeQueryString(boolean)} is set to {@code true}.
193+ * <p>By default this is not set, in which case all query parameters are logged.
194+ * <p>The predicate will be applied once per query parameter name. Thus, if
195+ * there are multiple values for the same query parameter name, the logged query
196+ * string will contain fewer {@code name=value} mappings than the one returned by
197+ * {@link HttpServletRequest#getQueryString()}.
199198 * @param queryParamPredicate the predicate to use
200199 * @since 7.0
201200 */
@@ -214,7 +213,7 @@ public void setQueryParamPredicate(@Nullable Predicate<String> queryParamPredica
214213 /**
215214 * Configure a predicate for selecting which headers should be logged if
216215 * {@link #setIncludeHeaders(boolean)} is set to {@code true}.
217- * <p>By default this is not set in which case all headers are logged.
216+ * <p>By default this is not set, in which case all headers are logged.
218217 * @param headerPredicate the predicate to use
219218 * @since 5.2
220219 */
@@ -364,7 +363,6 @@ protected String createMessage(HttpServletRequest request, String prefix, String
364363 for (String name : queryParams .keySet ()) {
365364 if (!getQueryParamPredicate ().test (name )) {
366365 updatedQueryParams .set (name , "masked" );
367- break ;
368366 }
369367 }
370368
0 commit comments