Elixir and Phoenix Security Checklist: 11 Best Practices Thinking Elixir 240: Standards and Security

Don't let the last word to the Logger

In Elixir a logger statement returns :ok always, whatever level you use, even with Logger.error and it makes total sense, that’s a deliberately choice inherited from Erlang. And this implicit return value can trick you. Let’s see how to write a custom Credo check to prevent this.

https://nickgnd.com/posts/2025/02/07/elixir-logger.html