lib/ezlog/railtie.rb in ezlog-0.3.3 vs lib/ezlog/railtie.rb in ezlog-0.3.4
- old
+ new
@@ -13,11 +13,12 @@
disable_rack_timeout_logging if defined? ::Rack::Timeout
end
initializer 'ezlog.configure_middlewares' do |app|
app.config.middleware.insert_after ::ActionDispatch::RequestId, Ezlog::Rails::RequestLogContext
- app.config.middleware.swap ::Rails::Rack::Logger, Ezlog::Rails::AccessLog, Ezlog.logger('AccessLog')
+ app.config.middleware.delete ::Rails::Rack::Logger
app.config.middleware.swap ::ActionDispatch::DebugExceptions, Ezlog::Rails::DebugExceptions
+ app.config.middleware.insert_before Ezlog::Rails::DebugExceptions, Ezlog::Rails::AccessLog, Ezlog.logger('AccessLog')
app.config.middleware.insert_after Ezlog::Rails::DebugExceptions, Ezlog::Rails::LogExceptions, Ezlog.logger('Application')
end
config.after_initialize do
Ezlog::Rails::LogSubscriber.detach ::ActionController::LogSubscriber