dd-trace-rb icon indicating copy to clipboard operation
dd-trace-rb copied to clipboard

Add debug info for log device

Open TonyCTHsu opened this issue 8 months ago • 2 comments

What does this PR do?

Adding debug info for Logger::LogDevice

Motivation:

We have seen this flaky specs in CircleCI, especially with JRuby.

log writing failed. closed stream

The error cannot be reproduce locally but it seems to be pretty generic when trying to write to a closed stream.

logger = Logger.new('t.log')
logger.close       # => nil
logger.info('foo') # Prints "log writing failed. closed stream"

Source: https://github.com/ruby/ruby/blob/master/lib/logger/log_device.rb#L48

TonyCTHsu avatar Jun 10 '24 14:06 TonyCTHsu