-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MissedMetadataKeyInLoggerConfig is incorrect #1070
Comments
Credo uses the current If the defaults don't suffice, you unfortunately need to configure them (by hand or by script). |
Hi, the logger configuration changed a bit in Elixir 15. You no longer specify a I think this check should support the new config too, since it's the default in Elixir 15 and I suppose new projects will use the new configuration more and more often. |
+1 to this. I encountered the same issue |
@Coffei @elishagreenwald Thanks for reporting this 😀 This should now be fixed on You can try this by setting the Credo dep to {:credo, github: "rrrene/credo"} Please report back if your issue is solved! 👍 |
Yes, this is fixed on master, thanks! |
Environment
mix credo -v
):1.7.0-ref.initial.292d461+uncommittedchanges
elixir -v
): Elixir1.15.4
, Erlang26.0.2
Using default credo config, just installed as a dependency.
The issue
I have this in my code
which produces this credo warning
I have this in my
config/config.exs
and my
config/prod.exs
is empty.So I'd say the metadata should work fine in prod too. I tried running the app with
MIX_ENV=prod
and surely I can see the metadata in the log.Expected outcome
Credo shouldn't generate a warning in this case.
The text was updated successfully, but these errors were encountered: