From 8cb26504015d73ae76ea8c2191ad9a7a8f0c59cd Mon Sep 17 00:00:00 2001 From: Michal Fojtik Date: Fri, 25 May 2012 00:16:15 +0200 Subject: [PATCH] Bug #6490 The printf() method in tracer.rb is now called on 'stdout' variable, which makes redirecting the output of Tracer.on possible. --- lib/tracer.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/tracer.rb b/lib/tracer.rb index 4b24295..3556d88 100644 --- a/lib/tracer.rb +++ b/lib/tracer.rb @@ -205,12 +205,12 @@ class Tracer else source = get_line(file, line) end - printf("%s:%d:%s:%s: %s", - file, - line, - klass || '', - EVENT_SYMBOL[event], - source) + stdout.printf("%s:%d:%s:%s: %s", + file, + line, + klass || '', + EVENT_SYMBOL[event], + source) end end -- 1.7.10.1