Skip to content

Commit 22f6849

Browse files
committed
minor #11879 Add caution about combining excluded_http_codes with passthru_level (rpkamp)
This PR was submitted for the 4.2 branch but it was merged into the 4.3 branch instead (closes #11879). Discussion ---------- Add caution about combining excluded_http_codes with passthru_level Commits ------- d37c804 Add caution about combining excluded_http_codes with passthru_level
2 parents 198ac65 + d37c804 commit 22f6849

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

logging/monolog_exclude_http_codes.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,10 @@ logging these HTTP codes based on the MonologBundle configuration:
5959
],
6060
],
6161
]);
62+
63+
.. caution::
64+
Combining ``excluded_http_codes`` with a ``passthru_level`` lower than
65+
``error`` (i.e. ``debug``, ``info``, ``notice`` or ``warning``) will not
66+
actually exclude log messages for those HTTP codes because they are logged
67+
with level of ``error`` or higher and ``passthru_level`` takes precedence
68+
over the HTTP codes being listed in ``excluded_http_codes``.

0 commit comments

Comments
 (0)