diff options
author | Sean McGivern <sean@gitlab.com> | 2018-03-09 13:35:21 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2018-03-12 10:14:52 +0000 |
commit | 68f8a798f24405318721a3457f2feb94452ba67b (patch) | |
tree | 5d898ad7f86255d188533827b898c4dd81b5c92d /spec | |
parent | cd7fcfd5779716c302608ce462996809f952ceec (diff) | |
download | gitlab-ce-68f8a798f24405318721a3457f2feb94452ba67b.tar.gz |
Include the ee/ directory in backtracesallow-ee-in-backtraces
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/profiler_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/lib/gitlab/profiler_spec.rb b/spec/lib/gitlab/profiler_spec.rb index f02b1cf55fb..3d5b56cd5b8 100644 --- a/spec/lib/gitlab/profiler_spec.rb +++ b/spec/lib/gitlab/profiler_spec.rb @@ -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 |