Sha256: f90c937e4526631e2d20f53de2806c72f7838013638b635f16e5faf07048cc6e
Contents?: true
Size: 1.22 KB
Versions: 5
Compression:
Stored size: 1.22 KB
Contents
# frozen_string_literal: true module ShopifyApp module RedactJobParams private def args_info(job) log_disabled_classes = ["ShopifyApp::WebhooksManagerJob"] return "" if log_disabled_classes.include?(job.class.name) super end end class Engine < Rails::Engine engine_name "shopify_app" isolate_namespace ShopifyApp initializer "shopify_app.assets.precompile" do |app| app.config.assets.precompile += [ "shopify_app/redirect.js", "shopify_app/post_redirect.js", "shopify_app/top_level.js", "shopify_app/enable_cookies.js", "shopify_app/request_storage_access.js", "storage_access.svg", ] end initializer "shopify_app.middleware" do |app| app.config.middleware.insert_after(::Rack::Runtime, ShopifyApp::JWTMiddleware) end initializer "shopify_app.redact_job_params" do ActiveSupport.on_load(:active_job) do if ActiveJob::Base.respond_to?(:log_arguments?) WebhooksManagerJob.log_arguments = false elsif ActiveJob::Logging::LogSubscriber.private_method_defined?(:args_info) ActiveJob::Logging::LogSubscriber.prepend(RedactJobParams) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems