summaryrefslogtreecommitdiff
path: root/qa/spec/runtime
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2018-10-25 11:49:33 -0400
committerMark Lapierre <mlapierre@gitlab.com>2018-10-25 15:21:21 -0400
commita85c8e346f0844b0bc8079e03f942f4c53776efa (patch)
treef5a51384510376ebcf5ea37f1b451a1022b702a1 /qa/spec/runtime
parent4de9004175e7c1dfd0366c41d70573d4d686b292 (diff)
downloadgitlab-ce-a85c8e346f0844b0bc8079e03f942f4c53776efa.tar.gz
Re-enable debug logging of Git commands and outputml-qa-repo-logging
Diffstat (limited to 'qa/spec/runtime')
-rw-r--r--qa/spec/runtime/logger_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/qa/spec/runtime/logger_spec.rb b/qa/spec/runtime/logger_spec.rb
index 794e1f9bfe6..44be3381bff 100644
--- a/qa/spec/runtime/logger_spec.rb
+++ b/qa/spec/runtime/logger_spec.rb
@@ -1,6 +1,12 @@
# frozen_string_literal: true
describe QA::Runtime::Logger do
+ before do
+ logger = Logger.new $stdout
+ logger.level = ::Logger::DEBUG
+ described_class.logger = logger
+ end
+
it 'logs debug' do
expect { described_class.debug('test') }.to output(/DEBUG -- : test/).to_stdout_from_any_process
end