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
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/initializers/lograge.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/config/initializers/lograge.rb b/config/initializers/lograge.rb
index 769ef2af0e7..a8207862739 100644
--- a/config/initializers/lograge.rb
+++ b/config/initializers/lograge.rb
@@ -44,16 +44,7 @@ unless Sidekiq.server?
# https://github.com/roidrage/lograge#logging-errors--exceptions
exception = event.payload[:exception_object]
- if exception
- payload[:exception] = {
- class: exception.class.name,
- message: exception.message
- }
-
- if exception.backtrace
- payload[:exception][:backtrace] = Gitlab::Profiler.clean_backtrace(exception.backtrace)
- end
- end
+ ::Gitlab::ExceptionLogFormatter.format!(exception, payload)
payload
end