Skip to content

Commit

Permalink
Log only errors in prod config
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemosphere committed Oct 13, 2023
1 parent c580eec commit 1b0aabc
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions config/prod.exs
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
use Mix.Config

# Do not print debug messages in production

config :logger, :console, level: :info

config :logger, :ecto,
level: :info,
path: Path.absname("logs/prod/ecto.log"),
rotate: %{max_bytes: 52_428_800, keep: 19}

config :logger, :error,
path: Path.absname("logs/prod/error.log"),
rotate: %{max_bytes: 52_428_800, keep: 19}
# Log only errors
config :logger, :console, level: :error

0 comments on commit 1b0aabc

Please sign in to comment.