Topic: how to supress logging of SET client_min_messages ?
I am running the latest version of rails with pgsql, and I have noticed that at the beginning of every request, development.log gets these 2 lines:
SQL (0.1ms) SET client_min_messages TO 'panic'
SQL (0.1ms) SET client_min_messages TO 'notice'
This has become unbearable because of a daemon that fetches external data and updates the site every 5 seconds. I managed to reduce most of the log clutter by overriding the logger method in the controller that receives and processes the data. But the SQL logging of the above 2 lines remains. I tried wrapping my code with ActiveRecord::Base.silence blocks but that had no effect.
I think it would be desirable to disable these particular log messages from all requests, but at a minimum I need to get rid of them from the recurring request. Any suggestions would be appreciated.