Disable Elixir Ecto Debug output

前端 未结 5 1034
别那么骄傲
别那么骄傲 2021-02-12 14:23

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

5条回答
  •  有刺的猬
    2021-02-12 15:09

    Ecto 3 answer to completely disabling logging would be:

    config :app, App.Repo,
      username: "postgres",
      password: "postgres",
      database: "app_dev",
      log: false
    

提交回复
热议问题