Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d74ad751
Commit
d74ad751
authored
May 12, 2021
by
Terri Chu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add logging statement to debug missing project feature
parent
dfc7101f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ee/lib/elastic/latest/project_instance_proxy.rb
ee/lib/elastic/latest/project_instance_proxy.rb
+3
-1
No files found.
ee/lib/elastic/latest/project_instance_proxy.rb
View file @
d74ad751
...
...
@@ -12,7 +12,7 @@ module Elastic
)
.
freeze
def
as_indexed_json
(
options
=
{})
# We don't use as_json(only: ...) because it calls all virtual and serialized attribut
t
es
# We don't use as_json(only: ...) because it calls all virtual and serialized attributes
# https://gitlab.com/gitlab-org/gitlab/issues/349
data
=
{}
...
...
@@ -45,6 +45,8 @@ module Elastic
TRACKED_FEATURE_SETTINGS
.
each
do
|
feature
|
data
[
feature
]
=
target
.
project_feature
.
public_send
(
feature
)
# rubocop:disable GitlabSecurity/PublicSend
rescue
NoMethodError
=>
e
# Sentry is not receiving the extra fields provided so adding an additional logging statement
target
.
logger
.
debug
(
message:
e
.
message
,
project_id:
target
.
id
,
feature:
feature
)
Gitlab
::
ErrorTracking
.
track_and_raise_exception
(
e
,
project_id:
target
.
id
,
feature:
feature
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment