Commit 28151ba5 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'log_sidekiq_payloads' into 'master'

Log sidekiq arguments

See merge request !940
parents 746b7e2d 03ae6b89
v 7.2.0 v 7.2.0
- Explore page - Explore page
- Add project stars (Ciro Santilli) - Add project stars (Ciro Santilli)
- Log Sidekiq arguments
v 7.1.0 v 7.1.0
- Remove observers - Remove observers
......
...@@ -12,6 +12,10 @@ Sidekiq.configure_server do |config| ...@@ -12,6 +12,10 @@ Sidekiq.configure_server do |config|
url: resque_url, url: resque_url,
namespace: 'resque:gitlab' namespace: 'resque:gitlab'
} }
config.server_middleware do |chain|
chain.add Gitlab::SidekiqMiddleware::ArgumentsLogger
end
end end
Sidekiq.configure_client do |config| 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