diff options
author | Rémy Coutable <remy@rymai.me> | 2016-10-03 17:20:18 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-10-03 17:20:18 +0300 |
commit | 8d333c87f19ae2f13e4494458b48fe97773da48d (patch) | |
tree | 40252678e3400c122b20b41acab66d715ad5795b /lib | |
parent | c4a061a23e6a379fde8b2d8ecda6d124b22164c6 (diff) | |
parent | dc20dd275fb15217b04431fa7f05b283ea03621c (diff) |
Merge branch 'aiionx_sidekiq_log_patch' into 'master'
Log sidekiq arguments as json
Logging the sidekiq job arguments as a ruby literal structure
is akward. Specially when parsing the logs.
JSON is a standar format.
See merge request !3735
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/sidekiq_middleware/arguments_logger.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/sidekiq_middleware/arguments_logger.rb b/lib/gitlab/sidekiq_middleware/arguments_logger.rb index 7813091ec7b..82a59a7a87e 100644 --- a/lib/gitlab/sidekiq_middleware/arguments_logger.rb +++ b/lib/gitlab/sidekiq_middleware/arguments_logger.rb @@ -2,7 +2,7 @@ module Gitlab module SidekiqMiddleware class ArgumentsLogger def call(worker, job, queue) - Sidekiq.logger.info "arguments: #{job['args']}" + Sidekiq.logger.info "arguments: #{JSON.dump(job['args'])}" yield end end |