From b5b3900abd61895f2a688d67c827b040956d692d Mon Sep 17 00:00:00 2001 From: zedshaw Date: Sat, 1 Apr 2006 09:09:10 +0000 Subject: Cleaned up the test suite so it spews less logging. Fixed up the debug access logging so it works. git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@136 19e92222-5c0b-0410-8929-a290d50e31e9 --- lib/mongrel/stats.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/mongrel/stats.rb') diff --git a/lib/mongrel/stats.rb b/lib/mongrel/stats.rb index a29a018..4e6b2fe 100644 --- a/lib/mongrel/stats.rb +++ b/lib/mongrel/stats.rb @@ -38,8 +38,8 @@ class Stats end # Dump this Stats object with an optional additional message. - def dump(msg = "") - STDERR.puts "[#{@name}] #{msg} : SUM=#@sum, SUMSQ=#@sumsq, N=#@n, MEAN=#{mean}, SD=#{sd}, MIN=#@min, MAX=#@max" + def dump(msg = "", out=STDERR) + out.puts "[#{@name}] #{msg} : SUM=#@sum, SUMSQ=#@sumsq, N=#@n, MEAN=#{mean}, SD=#{sd}, MIN=#@min, MAX=#@max" end # Calculates and returns the mean for the data passed so far. -- cgit v1.2.3-24-ge0c7