Commit 03ae6b89 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Log Sidekiq arguments

parent 00c67238
v 7.2.0
- Explore page
- Add project stars (Ciro Santilli)
- Log Sidekiq arguments
v 7.1.0
- Remove observers
......
......@@ -12,6 +12,10 @@ Sidekiq.configure_server do |config|
url: resque_url,
namespace: 'resque:gitlab'
}
config.server_middleware do |chain|
chain.add Gitlab::SidekiqMiddleware::ArgumentsLogger
end
end
Sidekiq.configure_client do |config|
......
module Gitlab
module SidekiqMiddleware
class ArgumentsLogger
def call(worker, job, queue)
Sidekiq.logger.info "arguments: #{job['args']}"
yield
end
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment