Skip to content

Commit 02c47ec

Browse files
committed
minor #11894 Add caution about combining excluded_404s with passthru_level (rpkamp)
This PR was merged into the 3.4 branch. Discussion ---------- Add caution about combining excluded_404s with passthru_level <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- d648be1 Add caution about combining excluded_404s with passthru_level
2 parents abb5d5b + d648be1 commit 02c47ec

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

logging/monolog_regex_based_excludes.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,12 @@ configuration:
6060
],
6161
],
6262
]);
63+
64+
65+
.. caution::
66+
Combining ``excluded_404s`` with a ``passthru_level`` lower than
67+
``error`` (i.e. ``debug``, ``info``, ``notice`` or ``warning``) will not
68+
actually exclude log messages for the URL(s) listed in ``excluded_404s``
69+
because they are logged with level of ``error`` or higher and
70+
``passthru_level`` takes precedence over the URLs being listed in
71+
``excluded_404s``.

0 commit comments

Comments
 (0)