timber-ruby icon indicating copy to clipboard operation
timber-ruby copied to clipboard

Timber installation silences Rails test log

Open eostrom opened this issue 7 years ago • 0 comments

By default, Rails in the test environment logs to log/test.log. When I ran bundle exec timber install, it installed a Timber logger that logs to nil. This was confusing the next time I tried to figure out why a test was failing – where did my log go?

In my opinion you should take the same approach in test.rb that you do in development.rb, and emulate standard Rails behavior by logging to log/test.log.

eostrom avatar Oct 16 '18 15:10 eostrom