Basics
This check is disabled by default.
Learn how to enable it via .credo.exs.
This check has a base priority of high and works with any version of Elixir.
Explanation
:logger filters have the same lifetime as a Telemetry handler, and the
same failure. :logger.add_primary_filter/2 and add_handler_filter/3
keep whatever fun they were given for as long as the node runs it.
A closure over the module that attached it fails once that module is
replaced by a hot upgrade. :logger catches the error, removes the
filter, and logs removed_failing_filter: whatever that filter was
dropping or redacting goes through unfiltered from then on, with one line
to say the filter is gone and none to say what it was protecting.
Pass {&MyApp.LogFilters.drop_health/2, []}, not an fn or a local
capture.
Check-Specific Parameters
There are no specific parameters for this check.
General Parameters
Like with all checks, general params can be applied.
Parameters can be configured via the .credo.exs config file.