small medium large xlarge

Wallace2_pragsmall
30 Sep 2009, 23:41
Mike Mondragon (3 posts)

In “Recipe 38: Log to the Console” clearing the active connections is not working correctly for me with Rails 2.3.4 and MySQL in the set_logger_to method. Instead of ActiveRecord::Base.clear_active_connections! if I clear them all then the recipe works by substituting in ActiveRecord::Base.clear_all_connections!

I wrote a blog post about it with additional script/console techniques illustrated “http://plasti.cx/2009/09/30/more-about-logging-directly-to-script-console”:http://plasti.cx/2009/09/30/more-about-logging-directly-to-script-console

Generic-user-small
13 Nov 2009, 18:59
James Smith (1 post)

Thanks. That fixed it for me too.

You must be logged in to comment