From 6ec0c9353a377d322151215fe165bafd5d95e9be Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Fri, 20 Dec 2019 12:24:47 +0100 Subject: [PATCH] silence background worker logging --- config/initializers/{lograge.rb => _lograge.rb} | 0 config/initializers/_shoryuken.rb | 5 ++--- 2 files changed, 2 insertions(+), 3 deletions(-) rename config/initializers/{lograge.rb => _lograge.rb} (100%) diff --git a/config/initializers/lograge.rb b/config/initializers/_lograge.rb similarity index 100% rename from config/initializers/lograge.rb rename to config/initializers/_lograge.rb diff --git a/config/initializers/_shoryuken.rb b/config/initializers/_shoryuken.rb index 236139002..f4f5603c0 100644 --- a/config/initializers/_shoryuken.rb +++ b/config/initializers/_shoryuken.rb @@ -19,11 +19,10 @@ def call(worker_instance, queue, sqs_msg, body) Shoryuken.configure_server do |config| config.server_middleware do |chain| + # remove logging of timing events + chain.remove Shoryuken::Middleware::Server::Timing chain.add Shoryuken::Middleware::Server::RavenReporter end - - Rails.logger = Shoryuken::Logging.logger - Rails.logger.level = Logger.const_get(ENV["LOG_LEVEL"].upcase) end Shoryuken.active_job_queue_name_prefixing = true