Skip to content

Commit 83b5569

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: missing blank line Add caution about combining excluded_http_codes with passthru_level
2 parents 9ca83e7 + d28649d commit 83b5569

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

logging/monolog_exclude_http_codes.rst

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

0 commit comments

Comments
 (0)