Forum: Ruby on Rails How do i see SQL in my logs?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
6aca20031886f048dd16218e7ebfa0ef?d=identicon&s=25 Gedanken (Guest)
on 2007-04-05 16:36
(Received via mailing list)
Warning, long time coder but new to RoR

I am not seeing anywhere near the level of logging i want in my logs,
for the sql stuff.  regular ruby logging ( in development.log) seems

For example,

Mysql::Error (Access denied for user 'rw'@'localhost' (using password:

What query generated this error?  what table was it trying to access?!?
2b4ba7df1d18f7ecbb5d2859aa0cfc7d?d=identicon&s=25 tharealpatton (Guest)
on 2007-04-05 20:57
(Received via mailing list)
The query_analyzer plugin is great for EXPLAINing the database queries
that are going on in your app.

If you're getting an error like you mentioned, though, your app
probably isn't even trying to make any queries.  It sounds like it
can't even connect to the database.
This topic is locked and can not be replied to.