My development log fills up with
SELECT name FROM sqlite_master WHERE
type = ‘table’ AND NOT name =
‘sqlite_sequence’
I’d like to turn off the sqlite_master queries in sqlite3, so that I only see the interesting queries.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s how I fixed it. Perhaps there are better options.
Tested only on Rails 2.3.8.
I added a log_info method to the SQLiteAdapter class in the activerecord gem, which overrides the same method in AbstractAdapter.
so, any sql statement that contains ‘sqlite_master’ is not logged.