Skip to content

Commit

Permalink
Tau - no long push logger to console in dev mode
Browse files Browse the repository at this point in the history
Logger uses its own log file. Stdout/stderr now uses a separate one.
  • Loading branch information
samaaron committed Jul 18, 2023
1 parent f91b7a3 commit 620f3d1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions app/server/beam/tau/config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,8 @@ config :tau,
handle_otp_reports: true,
handle_sasl_reports: true

if config_env() == :dev do
config :logger,
backends: [{LoggerFileBackend, :tau_file_log}, :console]
else
config :logger,
backends: [{LoggerFileBackend, :tau_file_log}]
end
config :logger,
backends: [{LoggerFileBackend, :tau_file_log}]

config :logger, :tau_file_log,
path: extract_env.("TAU_LOG_PATH", :string, "log/tau.log"),
Expand Down

0 comments on commit 620f3d1

Please sign in to comment.