diff options
Diffstat (limited to 'lib/gitlab/import_export')
-rw-r--r-- | lib/gitlab/import_export/relation_tree_restorer.rb | 7 | ||||
-rw-r--r-- | lib/gitlab/import_export/shared.rb | 6 |
2 files changed, 3 insertions, 10 deletions
diff --git a/lib/gitlab/import_export/relation_tree_restorer.rb b/lib/gitlab/import_export/relation_tree_restorer.rb index 8a2b0cab915..d2d0cddfcbb 100644 --- a/lib/gitlab/import_export/relation_tree_restorer.rb +++ b/lib/gitlab/import_export/relation_tree_restorer.rb @@ -82,11 +82,8 @@ module Gitlab end def log_import_failure(relation_key, relation_index, exception) - Gitlab::Sentry.track_acceptable_exception( - exception, - extra: { project_id: @importable.id, - relation_key: relation_key, - relation_index: relation_index }) + Gitlab::Sentry.track_exception(exception, + project_id: @importable.id, relation_key: relation_key, relation_index: relation_index) ImportFailure.create( project: @importable, diff --git a/lib/gitlab/import_export/shared.rb b/lib/gitlab/import_export/shared.rb index 2539a6828c3..7bdfd928723 100644 --- a/lib/gitlab/import_export/shared.rb +++ b/lib/gitlab/import_export/shared.rb @@ -56,11 +56,7 @@ module Gitlab end def error(error) - error_payload = { message: error.message } - error_payload[:error_backtrace] = Gitlab::Profiler.clean_backtrace(error.backtrace) if error.backtrace - log_error(error_payload) - - Gitlab::Sentry.track_acceptable_exception(error, extra: log_base_data) + Gitlab::Sentry.track_exception(error, log_base_data) add_error_message(error.message) end |