Skip to content


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

wants to merge 1 commit into from

3 participants


The patch fixes a simple omission:
Tracer allows setting of the attribute 'stdout', but the method 'trace_func' does not respect it in the main output. - The optional output of process id and thread id respects the attribute.

BTW: The info on about how to submit patches via github seems outdated!? @shyouhei's fork of this repo is way behind... That's why I am sending this request to this repo.

Ruby programming language member

Closing this, please refer to Bug #6490 on redmine.

@zzak zzak closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/tracer.rb
12 lib/tracer.rb
@@ -205,12 +205,12 @@ def trace_func(event, file, line, id, binding, klass, *) # :nodoc:
source = get_line(file, line)
- 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)
Something went wrong with that request. Please try again.