8000 Fix for using Kernel.printf for tracing output instead of stdout.printf by joergschray · Pull Request #111 · ruby/ruby · GitHub
[go: up one dir, main page]

Skip to content

Fix for using Kernel.printf for tracing output instead of stdout.printf #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix for using Kernel.printf for tracing output instead of stdout.printf
  • Loading branch information
joergschray committed Mar 31, 2012
commit 636f81870398d67f18cb3f72e6ac59c818050e77
12 changes: 6 additions & 6 deletions lib/tracer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,12 @@ def trace_func(event, file, line, id, binding, klass, *) # :nodoc:
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

Expand Down
0