From 325b510f4a380d0c5763f0db984b68773e8f34b9 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Thu, 14 Jun 2007 15:18:36 +0000 Subject: [PATCH] default the logger output to $stderr rather than STDERR (closes #8347) git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@7023 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- CHANGELOG | 2 ++ lib/capistrano/logger.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index ff62b3ed..8cd685c5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Logger defaults to $stderr instead of STDERR [lhartley] + * Use cp -RPp instead of -a in the remote cache strategy * Make the UploadError exception include an array of the hosts that failed [rob@inversepath.com] diff --git a/lib/capistrano/logger.rb b/lib/capistrano/logger.rb index fbd5ee76..52fbd7d5 100644 --- a/lib/capistrano/logger.rb +++ b/lib/capistrano/logger.rb @@ -11,7 +11,7 @@ module Capistrano MAX_LEVEL = 3 def initialize(options={}) - output = options[:output] || STDERR + output = options[:output] || $stderr if output.respond_to?(:puts) @device = output else