From 1de05ddc94e06efba3b880e7329eb4dd7a0ce492 Mon Sep 17 00:00:00 2001 From: Wendel Fabian Chinsamy Date: Tue, 23 Jul 2024 15:41:34 +0200 Subject: [PATCH] fix query logging error --- app/jobs/delete_orphaned_gbif_events_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/delete_orphaned_gbif_events_job.rb b/app/jobs/delete_orphaned_gbif_events_job.rb index 0406e4530..cc76690f5 100644 --- a/app/jobs/delete_orphaned_gbif_events_job.rb +++ b/app/jobs/delete_orphaned_gbif_events_job.rb @@ -7,7 +7,7 @@ def perform(env, options) label = "DeleteOrphanedGbifEventsJob_#{Time.now.utc.strftime("%d%m%Y%H%M%S")}" Rails.logger.info("#{label}: index_name: #{env}") - Rails.logger.info("#{label}: query: #{query}") + Rails.logger.info("#{label}: query: #{options[:query]}") # response = Event.delete_by_query(index: env, query: options[:query])