From c6c6ab873e8eb3cb87b593f99ea78c50e97442dc Mon Sep 17 00:00:00 2001 From: knu Date: Fri, 28 Aug 2009 11:41:13 +0000 Subject: * lib/tempfile.rb (Tempfile#callback): Debug information should be output to stderr, not stdout; pointed out by akira yamada. cf. [ruby-dev:39072] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/tempfile.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/tempfile.rb b/lib/tempfile.rb index 752fd488f8..4061b170a8 100755 --- a/lib/tempfile.rb +++ b/lib/tempfile.rb @@ -307,7 +307,7 @@ class Tempfile < DelegateClass(File) if pid == $$ path, tmpfile, cleanlist = *data - print "removing ", path, "..." if $DEBUG + STDERR.print "removing ", path, "..." if $DEBUG tmpfile.close if tmpfile @@ -317,7 +317,7 @@ class Tempfile < DelegateClass(File) cleanlist.delete(path) if cleanlist end - print "done\n" if $DEBUG + STDERR.print "done\n" if $DEBUG end } end -- cgit v1.2.3