diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-22 06:06:14 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-22 06:06:14 +0300 |
commit | f519cec2ad00c08b03614addd39a0d1a81c5d236 (patch) | |
tree | 59293b4a603c2ac8e20ac94f4a35490f28eb54d0 /config/initializers/lograge.rb | |
parent | 157f9a451a428f66666ba85d8b880df78aff6cc4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config/initializers/lograge.rb')
-rw-r--r-- | config/initializers/lograge.rb | 11 |
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 |