A platform for community discussion. Free, open, simple.
DEV: Remove log messages that are redundant (#30466)
Alan Guo Xiang Tan061d6fd7a70e
diff --git a/app/jobs/regular/sync_acls_for_uploads.rb b/app/jobs/regular/sync_acls_for_uploads.rbindex 68b5123b1ac..1c9c3f2c48d 100644--- a/app/jobs/regular/sync_acls_for_uploads.rb+++ b/app/jobs/regular/sync_acls_for_uploads.rb@@ -11,12 +11,8 @@ module Jobsreturn if !Discourse.store.external?return if !args.key?(:upload_ids)- # NOTE: These log messages are set to warn to ensure this is working- # as intended in initial production trials, this will need to be set to debug- # after an acl_stale column is added to uploads.time =Benchmark.measure do- Rails.logger.warn("Syncing ACL for upload ids: #{args[:upload_ids].join(", ")}")Upload.includes(:optimized_images).where(id: args[:upload_ids])@@ -36,9 +32,6 @@ module Jobsendendend- Rails.logger.warn(- "Completed syncing ACL for upload ids in #{time}. IDs: #{args[:upload_ids].join(", ")}",- )endendend