When I just change something in config.exs (want to change the logging level) and then start mix run, elixir ... or iex -S mix my changes are not considered, so I assume, it hasn’t recompiled.
When I then change something in one of my modules, the changes of my config.exs file are considered.
Oh, the logger configuration is only applied after your application is compiled. So if you move it inside a function, and then you call said funciton inside iex -S mix, it should apply properly.
Next time posting the code will help find the root cause quicker.
So if I change config :logger, level: :debug
to config :logger, level: :error
in config.exs and call recompile inside iex -S mix the usage of Logger.debug("hello") will always print “hello”?
One hour later: Aaaah, I think now i get it. This is because config.exs is elixir script, which is not compiled. So “recompile” won’t catch changes in config.exs. But when I change something in an .ex file, my elixir app will get recompiled and my changes in config.exs take effect.