Closed davorbadrov closed 1 year ago
For what it's worth I pulled this locally, built credo
, tested with it, and it works with the metadata: :all
logger config. ๐
Also just to link to the original issue: https://github.com/rrrene/credo/issues/1033
cc @rrrene ๐
@davorbadrov @Nezteb Thx! ๐งก
Hello, this is another take on this PR https://github.com/rrrene/credo/pull/1035 which fixes the
metadata: :all
behavior for MissedMetadataKeyInLoggerConfig check.The issue with the check is that it doesn't properly support the
metadata: :all
configuration. This PR is different from the linked one because it skips running the check entirely ifmetadata: :all
is set (since it makes no sense to run it), I've also added a new test that covers the scenario.Please let me know if it needs to be tweaked before merging.
What this PR does?
This pull request prevents credo from crashing when
metadata_keys == :all
and whenMissedMetadataKeyInLoggerConfig
check runs.More details
From Logger.Backends.Console documentation: