lib/rocket_job/batch/logger.rb in rocketjob-5.1.1 vs lib/rocket_job/batch/logger.rb in rocketjob-5.2.0.beta1

- old
+ new

@@ -1,6 +1,6 @@ -require 'active_support/concern' +require "active_support/concern" module RocketJob module Batch module Logger extend ActiveSupport::Concern @@ -29,10 +29,10 @@ # - log_exception logs entire exception if raised # - on_exception_level changes log level from info to error on exception # - silence noisy jobs by raising log level def rocket_job_batch_slice_logger(&block) logger.measure_info( - 'Completed slice', + "Completed slice", metric: "#{self.class.name}/slice", log_exception: :full, on_exception_level: :error, silence: log_level, payload: {records: rocket_job_slice&.size},