summaryrefslogtreecommitdiff
path: root/app/services/lfs/push_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/lfs/push_service.rb')
-rw-r--r--app/services/lfs/push_service.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/services/lfs/push_service.rb b/app/services/lfs/push_service.rb
index 9b947fbed07..e21988aa561 100644
--- a/app/services/lfs/push_service.rb
+++ b/app/services/lfs/push_service.rb
@@ -16,12 +16,17 @@ module Lfs
end
success
- rescue => err
+ rescue StandardError => err
+ Gitlab::ErrorTracking.log_exception(err, extra_context)
error(err.message)
end
private
+ def extra_context
+ { project_id: project.id, user_id: current_user&.id }.compact
+ end
+
# Currently we only set repository_type for design repository objects, so
# push mirroring must send objects with a `nil` repository type - but if the
# wiki repository uses LFS, its objects will also be sent. This will be