lib/rocket_job/dirmon_entry.rb in rocketjob-3.1.0 vs lib/rocket_job/dirmon_entry.rb in rocketjob-3.2.0
- old
+ new
@@ -223,10 +223,10 @@
end
end
# Passes each filename [Pathname] found that matches the pattern into the supplied block
def each(&block)
- logger.fast_tag("dirmon_entry:#{id}") do
+ SemanticLogger.named_tagged(dirmon_entry: id.to_s) 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