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.