lib/ezlog/railtie.rb in ezlog-0.7.1 vs lib/ezlog/railtie.rb in ezlog-0.8.0
- old
+ new
@@ -48,10 +48,10 @@
end
private
def initialize_sidekiq_logging(app)
- ::Sidekiq.logger = Ezlog.logger('Sidekiq').extend Ezlog::Sidekiq::LoggerExtension
+ ::Sidekiq.logger = Ezlog.logger('Sidekiq')
::Sidekiq.logger.level = app.config.log_level
::Sidekiq.configure_server do |config|
config.options[:job_logger] = Ezlog::Sidekiq::JobLogger
config.error_handlers << Ezlog::Sidekiq::ErrorLogger.new
config.error_handlers.delete_if { |handler| handler.is_a? ::Sidekiq::ExceptionHandler::Logger }