OptimumCredo.Check.Warning.LoggerErrorWithoutContext (OptimumCredo v0.5.0)
View SourceBasics
This check is disabled by default.
Learn how to enable it via .credo.exs.
This check has a base priority of low and works with any version of Elixir.
Explanation
Logger.error("failed") in an error branch hides what failed. Include the relevant
values: Logger.error("sync failed for #{id}: #{inspect(reason)}"), or pass metadata.
Only constant string messages are reported. Opt-in, low priority.
Check-Specific Parameters
Use the following parameters to configure this check:
:scope
:error_branches (default) or :all.
This parameter defaults to :error_branches.
General Parameters
Like with all checks, general params can be applied.
Parameters can be configured via the .credo.exs config file.