lib/pallets.rb in pallets-0.8.0 vs lib/pallets.rb in pallets-0.9.0

- old
+ new

@@ -36,10 +36,11 @@ @backend ||= begin cls = Pallets::Util.constantize("Pallets::Backends::#{configuration.backend.capitalize}") cls.new( blocking_timeout: configuration.blocking_timeout, failed_job_lifespan: configuration.failed_job_lifespan, + failed_job_max_count: configuration.failed_job_max_count, job_timeout: configuration.job_timeout, pool_size: configuration.pool_size, **configuration.backend_args ) end @@ -55,8 +56,11 @@ def self.middleware @middleware ||= configuration.middleware end def self.logger - @logger ||= configuration.logger + @logger ||= Pallets::Logger.new(STDOUT, + level: Pallets::Logger::INFO, + formatter: Pallets::Logger::Formatters::Pretty.new + ) end end