On 7 September 2011 17:42, rdavila <[email protected]> wrote:
> The problem is I'm getting 'stack level too deep' error and I can't
> find the path to that infinite recursion. Is there a better way to
> make this task?

You'll probably find that your "INSERT INTO syspanel_sql_logs...."
query is attempting to be logged... so it's recursing into the
log_with_syspanel_logger method.
How about before you execute that query you turn off your extended
logging, then turn it on again after?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to