aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Houston <robin@lenny.robin>2011-06-21 03:19:22 +0100
committerRobin Houston <robin@lenny.robin>2011-06-21 03:19:22 +0100
commit3b29b7c3f65e0c3153fbed0d27f864aaf624a36d (patch)
treed20954ebbce516524dc3f83646cb5f46a92021a7 /lib
parent543ee94019b124387ef775c1312e40730a0d1cdd (diff)
Replace STDERR.puts by $stderr.puts elsewhere, which is potentially more flexible (because STDERR is always the system standard error file descriptor, whereas $stderr can be replaced by some other ruby object to handle error output).
Diffstat (limited to 'lib')
-rw-r--r--lib/memory_profiler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/memory_profiler.rb b/lib/memory_profiler.rb
index a1cb64d34..15e8457ee 100644
--- a/lib/memory_profiler.rb
+++ b/lib/memory_profiler.rb
@@ -65,7 +65,7 @@ class MemoryProfiler
prev.update curr
GC.start
rescue Exception => err
- STDERR.puts "** memory_profiler error: #{err}"
+ $stderr.puts "** memory_profiler error: #{err}"
end
sleep opt[:delay]
end