Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-29 12:07:42 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-29 12:07:42 +0300
commitbfa061f3ae2ace72f7929973eaa0286574265a96 (patch)
tree8de29e3a2a0a30adc58bb23f660eda4d55e6e27d /lib/gitlab/sidekiq_logging
parent1ab1a6eefa84e1530663edf3b711f34c0d4e535e (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.rb6
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