PostgreSQL is a nice database and it's Rails support is great. However in development and test mode Postgres connection adapter seems to log far too many details when it queries database schema. This makes log files hard to grep at least.
Disabling this messages was quite easy, and since this monkey patch is quite simple I made a plugin out of it
Silent postgres is a very simple plugin that abuses Rails alias_method_chain. It only runs in development and test environments so there should be no performance impact on production
Have fun
0 comments:
Post a Comment