diff --git a/config/application.rb b/config/application.rb index ccde6de10..39891d6ff 100644 --- a/config/application.rb +++ b/config/application.rb @@ -8,6 +8,7 @@ require "active_storage/engine" require "action_controller/railtie" require "rails/test_unit/railtie" +require "active_job/logging" # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. @@ -79,6 +80,8 @@ class Application < Rails::Application config.logger = ActiveSupport::TaggedLogging.new(logger) config.log_level = ENV['LOG_LEVEL'].to_sym + config.active_job.logger = config.logger + # configure caching config.cache_store = :dalli_store, nil, { :namespace => ENV['APPLICATION'] } diff --git a/config/environments/test.rb b/config/environments/test.rb index 253568d67..a1c87c6af 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -13,7 +13,7 @@ config.eager_load = false # don't use debug level - config.log_level = :info + config.log_level = :error # Configure public file server for tests with Cache-Control for performance. config.public_file_server.enabled = true diff --git a/config/initializers/_shoryuken.rb b/config/initializers/_shoryuken.rb index b413daddf..adf0485c3 100644 --- a/config/initializers/_shoryuken.rb +++ b/config/initializers/_shoryuken.rb @@ -1,5 +1,6 @@ Shoryuken.configure_server do |config| - logger = Shoryuken::Logging.logger + Rails.logger = Shoryuken::Logging.logger + Rails.logger.level = Logger.const_get(ENV["LOG_LEVEL"].upcase) end Shoryuken.active_job_queue_name_prefixing = true