DB Log Cleaner plugin

Plugin details

A basic plugin that will automatically skip logging of PostgreSQL and MySQL queries about the schema. These only show up in development mode by default, but they can become annoying.

Websitehttp://iprog.com/project/db_log_cleaner Repositoryhttp://svn.iprog.com/projects/rails/plugins/db_log_cleaner/ Author Thomas Mmorgan Tags Logs LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://svn.iprog.com/projects/rails/plugins/db_log_cleaner/

Make ActiveRecord logs more short and clean by removing system SQL logs lines. That actually only for PostgreSQL.

Example of Removed Log Line
=======

SQL (0.000000)    SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = 'categories'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (1 older version) | Last edited by: scott, about 1 year ago