Whatever in iex> or using mix run -e \"My.code\" when I run the mix project using ecto, the Ecto\'s Debugging Mechanism display a bunch of SQLs like
iex>
mix run -e \"My.code\"
To disable debug messages temporarily you can do Logger.configure(level: :warn) and then re-enable with Logger.configure(level: :debug).
Logger.configure(level: :warn)
Logger.configure(level: :debug)
https://hexdocs.pm/logger/Logger.html#Levels