Skip to content

Commit

Permalink
refactor: remove old logging defaults based on /opt/postal
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcooke committed Jul 29, 2021
1 parent 5cd06e1 commit 4e5b621
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
environment Postal.config.rails&.environment || 'development'
prune_bundler
quiet false
unless ENV['LOG_TO_STDOUT']
stdout_redirect Postal.log_root.join('puma.log'), Postal.log_root.join('puma.log'), true
end

if ENV['APP_ROOT']
directory ENV['APP_ROOT']
Expand Down
4 changes: 0 additions & 4 deletions lib/postal/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ def self.config_root
@config_root ||= begin
if ENV['POSTAL_CONFIG_ROOT']
Pathname.new(ENV['POSTAL_CONFIG_ROOT'])
elsif __FILE__ =~ /\A\/opt\/postal/
Pathname.new("/opt/postal/config")
else
Pathname.new(File.expand_path("../../../config/postal", __FILE__))
end
Expand All @@ -49,8 +47,6 @@ def self.log_root
@log_root ||= begin
if config.logging.root
Pathname.new(config.logging.root)
elsif __FILE__ =~ /\/opt\/postal/
Pathname.new("/opt/postal/log")
else
app_root.join('log')
end
Expand Down

0 comments on commit 4e5b621

Please sign in to comment.