nesquena / dante

Turn any ruby code into a daemon.
MIT License
313 stars 17 forks source link

Spring/Zeus preloaders issue #20

Open antonfefilov opened 7 years ago

antonfefilov commented 7 years ago

I figured this issue: can't change access mode from "r+" to "a" (ArgumentError) while was using stripe-ruby-mock gem w/ both Spring and Zeus preloaders. The problem is in https://github.com/nesquena/dante/blob/master/lib/dante/runner.rb#L253 and I'm curious is it possible to simply remove 'a' option (all is well without it) or there is should be more complex solution?

nesquena commented 7 years ago

Looks like maybe you don't have permission to write to the log file. You could submit a PR which catches that exception and prints a warning instead rather than erroring out.

antonfefilov commented 7 years ago

Thank you for quick response, I will follow your recommendation.