Revert "Introduce log_dir env variable for truemail and require it with figaro."

This reverts commit 76eed1ef08.
This commit is contained in:
Alex Sherman 2020-07-17 16:58:42 +05:00
parent 76eed1ef08
commit d4f49e6556
3 changed files with 1 additions and 5 deletions

View file

@ -4,9 +4,6 @@
# #
# Be sure to restart your server when you modify settings. # Be sure to restart your server when you modify settings.
# #
# Log directory for gems not using syslog
log_dir: /home/app/current/log
# #
# SMTP configuration (for Admin/EPP/Registrar/Registrant servers) # SMTP configuration (for Admin/EPP/Registrar/Registrant servers)

View file

@ -5,5 +5,4 @@ Figaro.require_keys(%w[
time_zone time_zone
action_mailer_default_host action_mailer_default_host
action_mailer_default_from action_mailer_default_from
log_dir
]) ])

View file

@ -72,6 +72,6 @@ Truemail.configure do |config|
# stdout, write to file or both of these. Tracking event by default is :error # stdout, write to file or both of these. Tracking event by default is :error
# Available tracking event: :all, :unrecognized_error, :recognized_error, :error # Available tracking event: :all, :unrecognized_error, :recognized_error, :error
unless Rails.env.test? unless Rails.env.test?
config.logger = { tracking_event: :all, stdout: true, log_absolute_path: "#{ENV['log_dir']}/truemail.log" } config.logger = { tracking_event: :all, stdout: true, log_absolute_path: Rails.root.join('log', 'truemail.log') }
end end
end end