ActiveJobのパラメータにマスクすべき情報を設定している場合に使う。 HogeJob のログを消したい場合は ActiveSupport.on_load :active_job do class ActiveJob::Logging::LogSubscriber private def args_info(job) if job.arguments.any? if job.class == HogeJob " #{job.class} arguments is masking" else ' with arguments: ' + job.arguments.map { |arg| arg.try(:to_global_id).try(:to_s) || arg.inspect }.join(', ') end else '' end end end end