spring icon indicating copy to clipboard operation
spring copied to clipboard

Removing log file while spring is running prevents test log file creation

Open mdesantis opened this issue 11 years ago • 1 comments

Ruby 2.1.2, Rails 4.1.4, Spring 1.1.3, RSpec 2.14.1, spring-commands-rspec 1.0.2

While Spring is running, if I remove the test log file it is not created at the next bin/rspec execution; I have to stop Spring and the log file gets created again.

Could be related to spring-commands-rspec gem and not to this project?

mdesantis avatar Aug 05 '14 22:08 mdesantis

This issue probably applies to the development log file as well. It should be solvable using:

Spring.after_fork do
  Rails.logger.reopen
end

hosamaly avatar Apr 26 '22 09:04 hosamaly