lib/rocket_job/dirmon_entry.rb in rocketjob-2.0.0.rc3 vs lib/rocket_job/dirmon_entry.rb in rocketjob-2.0.0

- old
+ new

@@ -249,11 +249,11 @@ end end # Passes each filename [Pathname] found that matches the pattern into the supplied block def each(&block) - logger.fast_tag("DirmonEntry:#{id}") do + logger.fast_tag("dirmon_entry:#{id}") do # Case insensitive filename matching Pathname.glob(pattern, File::FNM_CASEFOLD).each do |pathname| next if pathname.directory? pathname = pathname.realpath file_name = pathname.to_s @@ -303,10 +303,10 @@ end # Queues the job for the supplied pathname def later(pathname) if klass = job_class - logger.benchmark_info "Enqueued: #{name}, Job class: #{job_class_name}" do + logger.measure_info "Enqueued: #{name}, Job class: #{job_class_name}" do job = klass.new(properties.merge(arguments: arguments)) upload_file(job, pathname) job.save! job end