Permalink
Browse files

lets try stderr

  • Loading branch information...
brianmario committed Sep 22, 2011
1 parent 90da878 commit d9500d199a0357f443ea11466339d1927ac00d9f
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/yajl/yajl_ext.c
View
@@ -193,7 +193,7 @@ void yajl_encode_part(void * wrapper, VALUE obj, VALUE io) {
status = yajl_gen_number(w->encoder, cptr, len);
} else {
str = rb_funcall(obj, intern_to_s, 0);
- rb_p(str);
+ fprintf(stderr, "Value is: %s\n", RSTRING_PTR(rb_inspect(str)));
Check_Type(str, T_STRING);
cptr = RSTRING_PTR(str);
len = RSTRING_LEN(str);

0 comments on commit d9500d1

Please sign in to comment.