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-17 06:09:00 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-17 06:09:00 +0300
commit56201db1dc66f3a2d598f6f8da0bec170dc26ba1 (patch)
tree8317b0a17c76866b981b497b13786dadceee5abf /lib/gitlab/sidekiq_logging
parentce2a803dc413f289352deecbf2cfd32896c8b2ef (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.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/sidekiq_logging/structured_logger.rb b/lib/gitlab/sidekiq_logging/structured_logger.rb
index 6dacca5529b..b45014d283f 100644
--- a/lib/gitlab/sidekiq_logging/structured_logger.rb
+++ b/lib/gitlab/sidekiq_logging/structured_logger.rb
@@ -77,7 +77,9 @@ module Gitlab
end
def parse_job(job)
- job = job.dup
+ # Error information from the previous try is in the payload for
+ # displaying in the Sidekiq UI, but is very confusing in logs!
+ job = job.except('error_backtrace', 'error_class', 'error_message')
# Add process id params
job['pid'] = ::Process.pid