An Elixir wrapper around the Erlang emqtt library.
It’s possible that logs from the ExMQTT module itself are being purged, but logs from modules in the wrapped :emqtt library are still being emitted.
What specific messages are you seeing? You could use that to triangulate the emitting module by grepping around the source code for the log text in both respective libraries.
Another thing to be aware is that you need recompile the deps after setting up the config.
Example
# since tesla and ecto_sql are deps don't forget to recompile them if you want to turn on / off their logs
# mix deps.compile --force tesla ecto_sql
config :logger,
backends: [:console],
compile_time_purge_matching: [
[application: :ecto_sql],
[application: :tesla],
[module: Lor.Lol.Replays.Worker, level_lower_than: :info]
]
I’m starting to think maybe there is something specific to running the app with mix phx.server that is breaking this for me
UPD:
I fixed it with this:
# Do not include metadata nor timestamps in development logs
config :logger, :console, format: "[$level] $message\n"
Logger.put_module_level(ExMQTT, :error)
Logger.put_module_level(:emqtt, :error)
I don’t really like that those put_module_level are not part of config :logger section, but I was not able to figure out how to do it otherwise (and compile_time_purge_matching also did not work, not sure why - don’t really care in this case)