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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
68f8a798
Commit
68f8a798
authored
Mar 09, 2018
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include the ee/ directory in backtraces
parent
cd7fcfd5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
config/initializers/backtrace_silencers.rb
config/initializers/backtrace_silencers.rb
+2
-7
lib/gitlab.rb
lib/gitlab.rb
+1
-0
spec/lib/gitlab/profiler_spec.rb
spec/lib/gitlab/profiler_spec.rb
+3
-1
No files found.
config/initializers/backtrace_silencers.rb
View file @
68f8a798
# Be sure to restart your server when you modify this file.
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
# Rails.backtrace_cleaner.remove_silencers!
Rails
.
backtrace_cleaner
.
remove_silencers!
Rails
.
backtrace_cleaner
.
add_silencer
{
|
line
|
line
!~
Gitlab
::
APP_DIRS_PATTERN
}
lib/gitlab.rb
View file @
68f8a798
...
...
@@ -2,6 +2,7 @@ require_dependency 'gitlab/git'
module
Gitlab
COM_URL
=
'https://gitlab.com'
.
freeze
APP_DIRS_PATTERN
=
%r{^/?(app|config|ee|lib|spec|
\(\w
*
\)
)}
def
self
.
com?
# Check `staging?` as well to keep parity with gitlab.com
...
...
spec/lib/gitlab/profiler_spec.rb
View file @
68f8a798
...
...
@@ -94,10 +94,12 @@ describe Gitlab::Profiler do
it
'strips out the private token'
do
expect
(
custom_logger
).
to
receive
(
:add
)
do
|
severity
,
_progname
,
message
|
next
if
message
.
include?
(
'spec/'
)
expect
(
severity
).
to
eq
(
Logger
::
DEBUG
)
expect
(
message
).
to
include
(
'public'
).
and
include
(
described_class
::
FILTERED_STRING
)
expect
(
message
).
not_to
include
(
private_token
)
end
end
.
twice
custom_logger
.
debug
(
"public
#{
private_token
}
"
)
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