diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-29 12:07:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-29 12:07:42 +0300 |
commit | bfa061f3ae2ace72f7929973eaa0286574265a96 (patch) | |
tree | 8de29e3a2a0a30adc58bb23f660eda4d55e6e27d /lib/gitlab/sidekiq_logging | |
parent | 1ab1a6eefa84e1530663edf3b711f34c0d4e535e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/sidekiq_logging')
-rw-r--r-- | lib/gitlab/sidekiq_logging/structured_logger.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gitlab/sidekiq_logging/structured_logger.rb b/lib/gitlab/sidekiq_logging/structured_logger.rb index 72820d0a25e..b45014d283f 100644 --- a/lib/gitlab/sidekiq_logging/structured_logger.rb +++ b/lib/gitlab/sidekiq_logging/structured_logger.rb @@ -85,11 +85,7 @@ module Gitlab job['pid'] = ::Process.pid job.delete('args') unless ENV['SIDEKIQ_LOG_ARGUMENTS'] - - if job['args'] - job['args'].map!(&:to_s) - job['args'] = Gitlab::Utils::LogLimitedArray.log_limited_array(job['args']) - end + job['args'] = Gitlab::Utils::LogLimitedArray.log_limited_array(job['args']) if job['args'] job end |