Not sure of the benefits of either. Heroku uses puts pretty regularly in
their docs.

Anything written to standard out (stdout) or standard error (stderr) is
captured into your logs. This means that you can log from anywhere in your
application code with a simple output statement.

On Thursday, April 4, 2013, Harlow Ward wrote:

> In templates/unicorn.rb:
>
> > @@ -0,0 +1,24 @@
> > +worker_processes (ENV['WEB_CONCURRENCY'] || 3).to_i
> > +timeout (ENV['WEB_TIMEOUT'] || 15).to_i
> > +preload_app true
> > +
> > +before_fork do |server, worker|
> > +  Signal.trap 'TERM' do
> > +    puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
>
> Is there a reason for puts over Rails.logger.info? I'm not sure if it
> makes any difference in the console output.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/thoughtbot/suspenders/pull/172/files#r3668638>
> .
>


-- 
Dan Croak
@croaky <http://github.com/croaky>
thoughtbot's internal research <http://tinyletter.com/thoughtbot/letters>