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:
Diffstat (limited to 'app/models/u2f_registration.rb')
-rw-r--r--app/models/u2f_registration.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/models/u2f_registration.rb b/app/models/u2f_registration.rb
index 65dc7a47533..7c01aa7a420 100644
--- a/app/models/u2f_registration.rb
+++ b/app/models/u2f_registration.rb
@@ -12,11 +12,7 @@ class U2fRegistration < ApplicationRecord
converter = Gitlab::Auth::U2fWebauthnConverter.new(self)
WebauthnRegistration.create!(converter.convert)
rescue StandardError => ex
- Gitlab::AppJsonLogger.error(
- event: 'u2f_migration',
- error: ex.class.name,
- backtrace: ::Gitlab::BacktraceCleaner.clean_backtrace(ex.backtrace),
- message: "U2F to WebAuthn conversion failed")
+ Gitlab::ErrorTracking.track_exception(ex, u2f_registration_id: self.id)
end
def update_webauthn_registration