lib/ezlog/railtie.rb in ezlog-0.5.1 vs lib/ezlog/railtie.rb in ezlog-0.5.2
- old
+ new
@@ -43,10 +43,10 @@
end
private
def initialize_sidekiq_logging(app)
- ::Sidekiq.logger = Ezlog.logger('Sidekiq')
+ ::Sidekiq.logger = Ezlog.logger('Sidekiq').extend Ezlog::Sidekiq::LoggerExtension
::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 }