lib/thoth/rails/railtie.rb in thoth-1.0.2 vs lib/thoth/rails/railtie.rb in thoth-2.0.0

- old
+ new

@@ -3,10 +3,10 @@ module Thoth class Railtie < ::Rails::Railtie initializer "thoth.configure_rails_initialization" do Thoth.logger ||= ( - file = File.open(::Rails.root.join(*%W[log events_#{ENV['RAILS_ENV']}.log]), 'a') + file = File.open(::Rails.root.join(*%W[log events_#{::Rails.env}.log]), 'a') file.sync = true Logger.new(Output::Json.new(file)) ) end end \ No newline at end of file