Skip to content

Commit 3e92b4a

Browse files
committed
Add caution about combining excluded_http_codes combined with passthru_level
1 parent 67f3845 commit 3e92b4a

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
@@ -63,3 +63,10 @@ logging these HTTP codes based on the MonologBundle configuration:
6363
],
6464
],
6565
]);
66+
67+
.. caution::
68+
Combining ``excluded_http_codes`` with a ``passthru_level`` lower than
69+
``error`` (i.e. ``debug``, ``info``, ``notice`` or ``warning``) will not
70+
actually exclude log messages for those HTTP codes because they are logged
71+
with level of ``error`` or higher and ``passthru_level`` takes precedence
72+
over the HTTP codes being listed in ``excluded_http_codes``.

0 commit comments

Comments
 (0)