From bff55e030fa3dcd4ac24ec481a67d6f327d67797 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 10 Jun 2010 03:06:31 +0000 Subject: unicorn_rails: use Kernel#warn instead of $stderr.puts shorter is better --- bin/unicorn_rails | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/unicorn_rails b/bin/unicorn_rails index 219f962..2f88bc1 100755 --- a/bin/unicorn_rails +++ b/bin/unicorn_rails @@ -154,10 +154,10 @@ def rails_builder(daemonize) if map_path != '/' # patches + tests welcome, but I really cbf to deal with this # since all apps I've ever dealt with just use "/" ... - $stderr.puts "relative URL roots may not work for older Rails" + warn "relative URL roots may not work for older Rails" end - $stderr.puts "LogTailer not available for Rails < 2.3" unless daemonize - $stderr.puts "Debugger not available" if $DEBUG + warn "LogTailer not available for Rails < 2.3" unless daemonize + warn "Debugger not available" if $DEBUG require 'unicorn/app/old_rails' map(map_path) do use Unicorn::App::OldRails::Static -- cgit v1.2.3-24-ge0c7