refactor: remove old logging defaults based on /opt/postal

This commit is contained in:
Adam Cooke
2021-07-29 16:25:25 +00:00
parent 5cd06e126b
commit 4e5b621232
2 changed files with 0 additions and 7 deletions
-4
View File
@@ -37,8 +37,6 @@ module Postal
@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
@@ -49,8 +47,6 @@ module Postal
@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