lib/loggery/railtie.rb in loggery-0.2.0 vs lib/loggery/railtie.rb in loggery-0.2.1

- old
+ new

@@ -44,10 +44,10 @@ # Default options config.loggery.enabled = true config.loggery.log_file = "log/logstash-#{Rails.env}.log" - initializer :loggery, before: :initialize_logger do |app| + initializer :loggery, before: :logstash_logger do |app| LoggerySetup.setup(app) if app.config.loggery.enabled end end end