Skip to content

Commit d37c804

Browse files
rpkampOskarStark
authored andcommitted
Add caution about combining excluded_http_codes with passthru_level
1 parent 198ac65 commit d37c804

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)