Skip to content

Commit

Permalink
minor symfony#11879 Add caution about combining excluded_http_codes w…
Browse files Browse the repository at this point in the history
…ith passthru_level (rpkamp)

This PR was submitted for the 4.2 branch but it was merged into the 4.3 branch instead (closes symfony#11879).

Discussion
----------

Add caution about combining excluded_http_codes with passthru_level

Commits
-------

d37c804 Add caution about combining excluded_http_codes with passthru_level
  • Loading branch information
OskarStark committed Jul 28, 2019
2 parents 198ac65 + d37c804 commit 22f6849
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions logging/monolog_exclude_http_codes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,10 @@ logging these HTTP codes based on the MonologBundle configuration:
],
],
]);
.. caution::
Combining ``excluded_http_codes`` with a ``passthru_level`` lower than
``error`` (i.e. ``debug``, ``info``, ``notice`` or ``warning``) will not
actually exclude log messages for those HTTP codes because they are logged
with level of ``error`` or higher and ``passthru_level`` takes precedence
over the HTTP codes being listed in ``excluded_http_codes``.

0 comments on commit 22f6849

Please sign in to comment.