Skip to content

Commit

Permalink
fix: flakey tracer provider test (#834)
Browse files Browse the repository at this point in the history
The logger was sometimes receiving a debug message from the tracer provider
when it was being upgraded.  Setting the log level to warn remedies that
as the test is concerned with not receiving a warning log.
  • Loading branch information
robertlaurin authored Jun 23, 2021
1 parent 62d6ee5 commit 83fb2be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/test/opentelemetry/sdk/trace/tracer_provider_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
before do
@log_stream = StringIO.new
@_logger = OpenTelemetry.logger
OpenTelemetry.logger = ::Logger.new(@log_stream)
OpenTelemetry.logger = ::Logger.new(@log_stream, level: 'WARN')
end

after do
Expand Down

0 comments on commit 83fb2be

Please sign in to comment.